Basic Command Line
Manipulate files folders
- Command line -> running a shele (bash, zsh…)
- Graphical interfaces
clear
ls #print out contents of the current directory
ls directory
ls -l #long format: more information of contents
pwd #print directory (tree format): "/" is the root directory; /b/e/f
cd .. #move back directory
cd ../e/d #relative path, no need of "/"
cd /a/b/c #absolute path
man ls #give documentations, "q" to quit
mkdir name#create new directory
rmdir name#remove a directory
cat file_name #loos at content of a file
pico file_name#create/edit file content
emacs #text editors
vim #text editors
ssh cis19x@eniac.seas.upenn.edu #connection between host
tmux #another host continues running
# tab to auto fill incomplete words
mv name1 name2 #change file name
mv file ../a/ #move a file
cp name1 name2 #copy file with name1
rm name #remove a file
cd .snapshot #recover directory on eniacß
scp #security path
mail