Bash commands (terminal) Flashcards
1
Q
pwd
A
print working directory (shows where you are)
2
Q
LS
A
list directory (shows the list of directories in the directory you’re in)
3
Q
cd
A
change directory (choose where you want to go)
4
Q
cd ..
A
go to parent directory (back)
5
Q
command + k
A
clear screen
6
Q
w
A
remove file (it deletes it without sending to trash WATCHOUT!!)
7
Q
rm -r
A
remove folder (and everything inside! WATCH OUT!)
8
Q
nano
A
to open nano text editor
9
Q
mkdir
A
make directory (to create a directory)
10
Q
touch
A
create file (e.i. touch test.txt)
11
Q
rmdir
A
remove directory
rmdir , replacing with the name of the directory to remove
12
Q
pushd
A
push directory
13
Q
popd
A
pop directory
14
Q
cp
A
copy a file or directory
15
Q
mv
A
move a file or directory