Introduction to Linux (Navigating the file system) Flashcards
How to print working directory (CLI)
pwd
How to list all files (incl hidden files) (CLI)
ls -la
how to get explanation and combinations of a command (CLI)
man ls (or any other command following man (manual) )
how to print something to the screen/write to a file? (CLI)
with the echo command (use > to write to a file)
how to print file content to screen (CLI)
with the cat command
What to do if you can’t locate an existing file? (CLI)
update db with updatedb command
How to change current password? (CLI)
passwd
how to change user permissions of a file? (CLI)
chmod + rwx hello.txt OR chmod 777 hello.txt
What does chmod 0 do to file permissions? (CLI)
— permission
What does chmod 1 do to file permissions? (CLI)
–x permission
What does chmod 2 do to file permissions? (CLI)
-w- permission
What does chmod 3 do to file permissions? (CLI)
-wx permission
What does chmod 4 do to file permissions? (CLI)
r– permission
What does chmod 5 do to file permissions? (CLI)
r-x permission
What does chmod 6 do to file permissions? (CLI)
rw- permission