Command Line Flashcards

0
Q

Whats is another term for my computer’s network name?

A

Hostname

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/renaming them

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

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

touch

A

Creates a new file

25
Q

$|$

A

The | takes the output from the command on the left and “pipes” it to the command on the right.

26
Q

$<$

A

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

27
Q

$>$

A

The > takes the output of the command on the left then writes it to the file on the right.

28
Q

$»$

A

The&raquo_space; takes the output of the command on the left then appends it to the file on the right.

29
Q

*

A

Matches anything in a wildcard like *.txt