6. $ finger displays more information about the users like name of the user, phone number, idle time etc ..,
7. $ who am i displays current working users details
User2 tty1 2011-11-12 17:20 ip address
8. $ whoami displays current working user without details
User2
9. $ tty to display terminal type
10. $ sleep [time in sec] to take the shell into sleeping state.
$ sleep 5
For 5 seconds the shell will be going to sleep state
11. Executing multiple commands $ cmd1; cmd2; cmd3; cmd4
Ex: $ ls; sleep 5 ; date
Here first list of the files will be displayed then it goes to sleeping state for 5 seconds and it displays date.
Wild card characters:
[ ] Brackets enclose a set of characters, any one of which may match a single character at that position.
- A hyphen used within [ ] denotes a range of characters.
~ A tilde at the beginning of a word expands to the name of your home directory. If you append another user's login name to the character, it refers to that user's home Directory.
cp ../abc?. copies every file in the parent directory that is four characters long and
begins with abc to the working directory. (The names will remain the same)
ls abc[34567] lists every file that begins with abc and has a3,4,5,6, or7 at the end.
ls abc[3-7] does exactly the same thing as the previous example.
ls ~ lists your home directory.
ls ~user1 lists the home directory of the user with the user id user1.
$ ls file [1-9] [1-9] in the filename 5th char should be 1-9 and 6th should be 1-9.