Bash commands (terminal) Flashcards

1
Q

pwd

A

print working directory (shows where you are)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

LS

A

list directory (shows the list of directories in the directory you’re in)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

cd

A

change directory (choose where you want to go)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

cd ..

A

go to parent directory (back)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

command + k

A

clear screen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

w

A

remove file (it deletes it without sending to trash WATCHOUT!!)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

rm -r

A

remove folder (and everything inside! WATCH OUT!)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

nano

A

to open nano text editor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

mkdir

A

make directory (to create a directory)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

touch

A

create file (e.i. touch test.txt)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

rmdir

A

remove directory

rmdir , replacing with the name of the directory to remove

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

pushd

A

push directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

popd

A

pop directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

cp

A

copy a file or directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

mv

A

move a file or directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

less

A

page through a file

17
Q

cat

A

print the whole file

18
Q

xargs

A

execute arguments

19
Q

find

A

find files

20
Q

grep

A

find things inside files

21
Q

man

A

read a manual page

22
Q

apropos

A

find what man page is appropriate

23
Q

env

A

look at your environment

24
Q

echo

A

print some arguments

25
Q

export

A

export/set a new environment variable

26
Q

exit

A

exit the shell

27
Q

sudo

A

DANGER! become super user root DANGER!

28
Q

GENERAL TERM (not terminal): CLI

A

Command line interface