Command Line Crash Course Flashcards
Learn basics of terminal commands (47 cards)
What does “rm -rf /” do?
delete all contents of current file/app
never type this
What does ‘pwd’ mean?
What does ‘pwd’ do?
- print working directory
- it prints path of current directory
hostname
my computer’s network name
mkdir
make directory
cd
change directory
ls
list contents of directory
rmdir
remove directory
pushd
push directory
popd
pop directory
cp
copy a file or directory
mv
mv [current_name] [new_name]
move (or rename) a file or directory
less
page through a file
cat
print the whole file
xargs
execute argument
find
find files
grep
find things inside files
man
read a manual page
apropos
find what man page is appropriate
env
look at your environment
echo
print some arguments
export
export/set a new environment variable
exit
exit the shell
sudo
become super user root
DANGER! DANGER!
chmod
change permission modifiers