Basic Commands Flashcards

1
Q

pwd

A

Print working directory

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

find start directory -name pattern -print

Need to double quote the pattern

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

grep

A

Find things inside files

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 which manual page is appropriate

18
Q

env

A

Look at your environment

19
Q

echo

A

Print some arguments

20
Q

export

A

Export/set a new environment variable

21
Q

exit

A

exit the shell

22
Q

sudo

A

DANGER! become super user root DANGER!

23
Q

chmod

A

Change permission modifiers

24
Q

chown

A

Change ownership

25
LHS | RHS
Take the output of the command on the LHS and pipe it in as the input for the RHS
26
LHS < RHS
Use RHS as the input for LHS
27
LHS > RHS
Put the output of LHS into RHS
28
LHS >> RHS
Append the output of LHS to RHS (doesn’t overwrite RHS)
29
.
the working directory
30
..
Parent of the working directory