Command Line Meanings Flashcards

1
Q

Takes current directory and pushes it into a list for later, then changes it to another directory. “Save where I am, then go here.”

A

pushd

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

command takes the last directory you pushed and “pops” it off, taking you back there.

A

popd

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

removes directory

A

rmdir or rm space then filename

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

make a directory

A

mkdir

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

change a directory

A

cd

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

print working directory

A

pwd

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

copy a file

A

cp

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

see the contents of a text file

A

less

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

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

A

$|$

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

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

A

$>$

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

sometimes known as commands all on their own, because they indicate the general idea of what you want. Most of the time, you can simply run a utility all by itself, without any flags or arguments. Most commands only have one

A

utility

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

show it to me in long format

A

-l

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

Copies the $FILE to the $LOCATION.

A

cp $FILE $LOCATION

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

move. Moves the $FILE to the $LOCATION.

A

mv $FILE $LOCATION

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

remove. Deletes a file permanently.

A

rm

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

takes you back to the home directory

A

cd ~

17
Q

or

A

||

18
Q

if both the commands are true then it is true: (A and B)

A

and

19
Q

if both the operands are non zero then the condition is true

A

&&