Terminal Commands Reference
Table of Contents
System Info
man(Manual)mancommand– show the manual for commandclearClears information on the display screen to provide a blank slatedateshow the current date and timecalshow this months calendarwdisplay who is onlinewhoamiwho you are logged in as
Navigation
ls -lDisplays a long list vertically with file permissions, date modified and file name (linux)ls -laDisplays all files (linux)ls -alformatted listing with hidden files (linux)cdChange Directorycd ~Return to home directory..Go up one level / directory
File Manipulation
mkdirdircreate directorydirtouchfilename.extensionMake a new file of filename at current location. Extension must be included.rmfiledeletefilerm -r dirdelete directorydirrm -f fileforce removefilerm -rf dirforce remove directorydir
SSH
ssh user@hostconnect to host as userssh -p port user@hostconnect tohoston portportasuserssh-copy-id user@host– add your key tohostforuserto enable a keyed or password-less login
References
David Baumgold: command line tutorial