Linux BASH commands Flashcards
ls
list
man
manual
apropos + “…”
search for this phrase
Ctrl + C
cancel command
Ctrl + A
go to beginning of line
Ctrl + E
go to end of line
f
go forward in manual
b
go backward in manual
cd
change directory
tab
autofill command
pwd
Print Name of Working Directory
ls -R + argument
search directory and print its documents
(recursive)
mkdir
make new directory
mkdir -p
create necessary parent directories
rmdir
remove directory
(directory must be empty)
cp
copy
cd ..
move up one directory
mv
move
mv (file) .
move to current working directory
mv *.txt (directory)
move all text files to specified directory
mv (directory/)* .
move to current working directory
rm
remove
?
(linux)
one character
find + directory + search criteria (eg. -name) + search term (eg. “poe*”)
find file
su + username + user password
switch user
sudo -k
end admin root privileges
(will need to enter password again)
sudo -s
log into root shell
rwx
read (read only)
write (write only)
execute (run the file)
chmod
changes permission mode string (eg. rwx)