command line Flashcards

0
Q

hostname

A

my computers network name

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

pwd

A

print working directory

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

mkdir

A

make directory

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

cd

A

change directory

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

ls

A

list directory

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

rmdir

A

remove directory

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

pushd

A

push directory

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

popd

A

pop directory

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

cp

A

copy a file or directory

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

mv

A

move a file or directory

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

less

A

page through a file

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

cat

A

print the whole file

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

xargs

A

execute arguments

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

find

A

find files

find STARTDIR -name WILDCARD - print

example: find . -name “*.txt” - print | less

less is to show files on the same screen on the terminal

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

grep

A

find things inside files

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

man

A

read a manual page

16
Q

apropos

A

find what man page is appropriate

17
Q

env

A

look at your environment

18
Q

echo

A

print some arguments

19
Q

export

A

export/set a new environment variable

20
Q

exit

A

exit the shell

21
Q

sudo

A

DANGER! become super user root DANGER!

22
Q

chmod

A

change permission modifiers

23
Q

chown

A

change ownership

24
Q

rm -Rf

A

remove a file

25
Q

command k

A

clear terminal

26
Q

touch

A

make a file

27
Q

cp -r

A

copy directory with files in it

28
Q

q

A

go back in terminal

29
Q

|

A

takes the output from the command on the left, and “pipes” it to the command on the right

30
Q

<

A

take and send the input from the file on the right to the program on the left.

31
Q

>

A

takes the output of the command on the left, then writes it to the right on the file

32
Q

> >

A

takes the output of the command on the left, then appends it to the file on the right

33
Q

*

A

matches anything in a wildcard like *.txt

34
Q

man

A

use to define commands

example: man grep

35
Q

control d

A

to exit program like python from terminal