codes Flashcards
displays file contents onscreen or provide file contents to standard output
cat FILENAME
display files 1 and 2
cat FILE1 FILE2
return to home directory
cd
move up one level in the directory tree
cd ..
move to the /etc directory relative to the system root
cd /etc
use a tilde as a shortcut to get to your home directory, this moves you to the subdirectory
cd ~/subdir
move to the Projects directory relative to the current directory
cd Projects
Filter backspaces and reverse line feeds out of input. Use to make man pages editable without odd formatting
col -b
Close your current process (often a shell) and your Unix session if you close the login shell
CTRL D
close your current shell and your Unix session if you are in login shell
exit
Use to view Filename screen by screen
less Filename
close your Unix session
logout
list files and directories
ls
list the files and directories in the root directory
ls /
list the files and directories in a directory
ls directoryname
list all files and directories, including hidden ones
ls -a
list files and directories by modification date
ls -c or ls -t
list files and directories in long format, with extra information
ls -l
list files and directories in long format, with extra information and human readable sizes
ls -lh
view the specified section (5) of the man pages for command. Sometimes used a man -s 5 Command
man 5 command
view the manual (help) pages for command
man command
find appropriate man pages for “keyword”
man -k keyword
view filetoview screen by screen
more filetoview
change your password
passwd