Commands Flashcards

0
Q

hostname

A

Computer’s 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 current directory into a list for later, then changes to another directory. “Save where I am and go here”

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

popd

A

Takes you back to the directory you pushed

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

cat

A

Print the whole file

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

xargs

A

Execute arguments

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

find

A

Find files

find STARTDIR -name “WILDCARD” - print

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

grep

A

Find things inside files

Greg TEXT WILDCARD

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

man

A

Read a manual page

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

apropos

A

Find which man page is appropriate

16
Q

env

A

Look at your environment

17
Q

echo

A

Print some arguments

18
Q

export

A

Export/set a new environment variable

19
Q

exit

A

Exit the shell/terminal

20
Q

sudo

A

Become super user root. Be careful

21
Q

chmod

A

Change permission modifiers

22
Q

chown

A

Change ownership

23
Q

less

A

Displays file. Exit with q

24
Q

$ | $

A

Pipes output from command on left to command on right

25
Q

$ < $

A

Sends input from file on right to program on left

26
Q

$ > $

A

Writes output of command on left to file on right

27
Q

$&raquo_space; $

A

Takes output of command on left and adds it to file on right

28
Q

$ -r

A

Performs command recursively through directories

29
Q

$ -rf

A

Performs command recursively through files

30
Q

mkdir -p

A

Creates entire path

31
Q

*

A

Wildcard

32
Q

touch

A

Creates empty file

33
Q

$ -i

A

Disregard case

34
Q

$

A

Represents a command