CommandLineDefs Flashcards

1
Q

pwd

A

print working direcdtory

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

hostname

A

My computer’s network name

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

mkdir

A

make directory

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

cd

A

change directory

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

ls

A

list directory

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

rmdir

A

remove directory

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

pushd

A

push directory

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

popd

A

pop directory

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

cp

A

copy a file or directory

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

mv

A

move a file or directory

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

less

A

page through a file

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

cat

A

print the whole file

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

xargs

A

execute arguments

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

find

A

find files

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

grep

A

find things insdie a file

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

man

A

read a manual page

17
Q

apropos

A

find what man page is approproate

18
Q

env

A

look at your enviroment

19
Q

echo

A

print some arguments

20
Q

exit

A

exit the shell

21
Q

sudo

A

DANGER! become super user root DANGER!

22
Q

chmod

A

change permision modifiers

23
Q

chown

A

change ownership

24
Q

|

A

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

25
Q

<

A

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

26
Q

>

A

The > takes the output of the command on the left, then writes it

to the file on the right.

27
Q

> >

A

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

28
Q

*

A

“matches anything in a wildcard like *.txt

29
Q

xargs

A

The xargs utility reads space, tab, newline and end-of-file delimited strings from the standard input and executes utility with the strings as arguments.

30
Q

sudo

A

sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file.

31
Q

chmod

A

The chmod utility modifies the file mode bits of the listed files as speci-fied by the mode operand.

32
Q

chown

A

The chown utility changes the user ID and/or the group ID of the specified files.