This page lists the commands that you should be practicing. I will do my best to keep this list updated as we go through things in class.
Connecting
ssh
- connect to remove serverssh username@server_address
- E.g.,
ssh yourusername@eos01.cis.gvsu.edu
Special file paths
.
- current working directory..
- parent directory (go up a level)~
- shortcut to your home directory/
- root of file system/home/yourusername
- your home directory
File systems
ls
- List files- E.g.,
ls ~
,ls .
,ls CIS241
- E.g.,
cd
- Change directory- E.g.,
cd ~
,cd ..
,cd /WEB_STUDENT/yourusername
- E.g.,
touch filename
- Create empty filerm
- Remove – BE CAREFUL - THERE IS NO RECYCLE BIN AND ANYTHING DELETED CANNOT BE RECOVERED- E.g.,
rm filename
- deletes filename rm -rf directory
- removes the directory AND everything inside of it
- E.g.,
rmdir
- Remove directory- E.g.,
rmdir directory
- note, directory must be empty for this to work (therm -rf
command takes care of the deletion if not)
- E.g.,
Editing
nano <filename>
- edit a file with the nano editor^
in the bottom menu represents Ctrl (or Cmd if you’re on Mac)