Linux Discovery Exercise 1 Essay

Words: 927
Pages: 4

1. Use the whatis command to determine the purpose of the ls command. whatis what?
[will@localhost ~]$ whatis man man (1) - an interface to the on-line reference manuals man (7) - macros to format man pages man (1p) - display system documentation 2. Use the man program to find out what the -R option does when used with the date command.
SYNOPSIS
date [OPTION]... [+FORMAT] date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

DESCRIPTION Display the current time in the given FORMAT, or set the system date. -r, --reference=FILE display the last modification time of FILE 3. Use the man program to determine what other commands you should also see in relation to
…show more content…
[will@localhost ~]$ who -uH;w
NAME LINE TIME IDLE PID COMMENT will :0 2015-02-10 09:26 ? 6357 (:0) will pts/0 2015-02-10 12:10 . 9391 (:0) 12:36:27 up 17:32, 2 users, load average: 0.26, 0.26, 0.26
USER TTY LOGIN@ IDLE JCPU PCPU WHAT will :0 09:26 ?xdm? 39:26 0.15s gdm-session-worker [pam/gdm-pas will pts/0 12:10 3.00s 0.12s 0.02s w 17. Determine when the computer you are working on was last booted.
[will@localhost ~]$ last 18. Use the command-line history function to determine the most recent two commands you entered.
Typing up arrow key will display the last used command , if pressed one more time will display the one before that one

19. Run the who -H, cal 2009,, and clear commands using one command-line sequence. What do you end up with on the screen?
[will@localhost ~]$ who -H;cal 2009;clear
After running all this secuence the screen end up clear

20. Use the history function to retrieve the command line you used in Exercise 19. Use the edit function to remove the word “clear” and replace it with “date.” Next, go to the beginning of “cal” and delete the text on the line from “cal” to the end. Now, change the -H to -u. Finally, add “; date -u” so that your final command-line entry is: who -u ; date -u. Execute the command-line entries.