Command Explanation Format Options Example pwd Display full pathname of the None None pwd current working directory. /home/userid w Display summaries of system w [options] [user] -h suppress heading w userid usage, currently logged-in users, Display output for one -s short command and what they are doing. user by specifying -u ignore username [user] -V version info time Measures program resource use time [options] time Get time in seconds command [arguments] Returns the time since the Epoch (01/01/70), measured in seconds date Current date and time date [options] +format display current date +%a %b %e %T – [+format][date] date in a nonstandard %Y %Z format. Tue Sep 5 14:59:37 %a abbreviated weekday 2000 EDT %b abbrev. month name %e date %T time H:M:S format %Y four-digit year %Z time zone name cal 12 month calendar for a given cal [-jy][[month]year] -j Julian cal 2004 year. 1 month calendar for a -m Monday day given month -y entire year > Move contents/results of the command > file pwd > outfile1 command into a text file. Operator to combine several files into a new file. cat Display the contents of a file. cat [options][file] -a show all cat outfile1 Combine files. -s squeeze blanks cat ch1 ch2 >all Append to a file. -n number each line cat note5 >> notes
Command Explanation Format Options Example pwd Display full pathname of the current working directory. None None pwd /home/userid w Display summaries of system usage, currently logged-in users, and what they are doing. w [options] [user] Display output for one user by specifying [user] -h suppress heading -s short command -u ignore username -V version info w userid time Measures program resource use Get time in seconds Returns the time since the Epoch (01/01/70), measured in seconds time [options] command [arguments] time date Current date and time date [options] [+format][date] +format – display current date in a nonstandard format. %a abbreviated weekday %b abbrev. month name %e date %T time H:M:S format %Y four-digit year %Z time zone name date +%a %b %e %T %Y %Z Tue Sep 5 14:59:37 2000 EDT cal 12 month calendar for a given year. 1 month calendar for a given month cal [-jy][[month]year] -j Julian -m Monday day -y entire year cal 2004 > Move contents/results of the command into a text file. Operator to combine several files into a new file. command > file pwd > outfile1 cat Display the contents of a file. Combine files. Append to a file. cat [options][file] -a show all -s squeeze blanks -n number each line cat outfile1 cat ch1 ch2 >all cat note5 >> notes
Commands_changed.docx