Command Line Crash Course Flashcards
Learn basics of terminal commands
1
Q
What does “rm -rf /” do?
A
delete all contents of current file/app
never type this
2
Q
What does ‘pwd’ mean?
What does ‘pwd’ do?
A
- print working directory
- it prints path of current directory
3
Q
hostname
A
my computer’s network name
4
Q
mkdir
A
make directory
5
Q
cd
A
change directory
6
Q
ls
A
list contents of directory
7
Q
rmdir
A
remove directory
8
Q
pushd
A
push directory
9
Q
popd
A
pop directory
10
Q
cp
A
copy a file or directory
11
Q
mv
A
mv [current_name] [new_name]
move (or rename) a file or directory
12
Q
less
A
page through a file
13
Q
cat
A
print the whole file
14
Q
xargs
A
execute argument
15
Q
find
A
find files
16
Q
grep
A
find things inside files
17
Q
man
A
read a manual page
18
Q
apropos
A
find what man page is appropriate