Essay about Linux Discovery Exercise 1

922 Words4 Pages
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…
Create a file called who_info that contains the documentation for the who command. Next, use the less command to view the who_info file contents and scroll forward and backward through the information. Then use the tail command to view the final 12 lines of the who_info file. Finally, use the head command to view the first 12 lines of the who_info file. [will@localhost ~]$ man who > who_info [will@localhost ~]$ less who_info tail -n12 who_info heat -n12 who_info 14. Create a file called favorite_foods, and list your favorite foods, entering five or six or more. Press Enter after each favorite food so it appears on its own line (make certain you also press Enter after the final food item). After the file is created, add two more foods you like that are not on the list (press Enter after the final food item). View the list of foods to make certain the two items you added appear at the end of the list. cat >favorite_foods entering 5 lines pressing enter after each cat >> favorite_foods entering two more lines , pressing enter after each. less favorite_foods to view file contents 15. View the documentation for who and then view the documentation for w. How are these commands similar?. [will@localhost ~]$ whatis who who (1) - show who is logged on who (1p) - display who is on the system
Get Access