Interprete cd and ls commands Flashcards
what will this do?
cd
go to home directory for the currently logged in user.
what will this do?
cd /
go to root directory
what will this do?
cd ..
go up one directory
what will this do?
cd ../..
go up two directories
what will this do?
cd ~
go tho user’s home directory
what will this do?
ls /
show files and directories in root directory
what will this do?
ls /*ot
Show any files or directories that end in ot
what will this do?
cd /
ls ./
go to root directory and print a list of all it’s contents
what will this do?
mkdir ~/cli-tmp
make a directory named cli-tmp inside the home directory
what will this do?
cd users
go into the users directory
what will this do?
cd -
returns to last directory path you were in
what will this do?
ls ..
list files in the parent directory
List 3 different ways to go to home directory
cd ~
cd $HOME
cd