Common Command Line Flashcards

(27 cards)

1
Q

pwd

A

print working directory = brings you back to where you were

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

cd

A

change directory = adds to the directory

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

mkdir

A

make directory =allows you to make a directory

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

pwd

cd (blank)

A

adds to directory

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

cd ..

A

brings you up directory;

Use cd ../../../ etc to come up multiple directories

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

ls

A

lists what’s in the directory

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

rmdir

A

remove directory: keep in mind that you have to use cd .. to go back before removing the directory in front of it

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

mkdir -p

A

makes a directory all in one path instead of making them one at a time

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

pushd

A

push directory

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

new-item

A

add new item under a directory

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

cp

A

copy a file

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

How do you make files within a directory?

A

You can create a file with a directory by using the mkdir command

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

cp -r

A

copies entire directories into a new place:

  1. cp -r copy entire place
  2. cp -r filename newplace
  3. ls newplace
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

mv

A

use this command to move files and directories

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

more

A

page through a file

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

type

A

print the whole file

17
Q

forfiles

A

run a command on lots of files

18
Q

dir-r

19
Q

select-string

A

find things inside a file

20
Q

help

A

read a manual page

21
Q

helpctr

A

find what man page is appropriate

22
Q

echo

A

print some arguments

23
Q

set

A

export/set a new environment variable

24
Q

exit

A

exit the shell

25
runas
danger! become super root danger!
26
robocopy
robust copy
27
forfiles
run a command on a lot of files