Basic Commands
and Simple Shell Scripts74
12 echo $EDITOR 13 grep wheel /etc/gro 14 grep wheel /etc/group 15 cat /etc/group 16 grep nobody /etc/group /etc/passwdYou can run any of those commands again by using the ! command. Just run ! with the number of the command and it will run again:
[user@rhel-instance
]$ !5id rootuid=0(root) gid=0(root) groups=0(root)TipThe !! command will run the very last command again, no matter which number.
Now, it is time to enjoy your superfast command line. Let’s learn more about the structure
of directories in Linux, to know whereto go to find things, in the following section.
Share with your friends: