Navigation Flashcards
navigate the file system
print name of current working directory
pwd
change directory
cd
list directory contents
ls
change the directory to /usr/bin
cd /usr/bin
change the directory to parent directory of /usr/bin which is /usr
cd /usr or cd ..
change the directory from /usr to /usr/bin
cd /usr/bin or cd ./bin
change the directory to home directory (short cut)
cd
change directory to previous directory(short cut)
cd -
change the directory to bob home directory
cd ~bob (cd ~username)
determine file type
file
view text file content
less filename
list a specify directory /usr
ls /usr
list multiple directory (home and usr)
ls ~ /usr
list the information of file in current directory (long format)
ls -l
list all the file include hidden files
ls -a