Cmd line Flashcards

1
Q

Move directory

A

cd Foldername

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

Create directory

A

mkdir Foldername

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

Create a file

A

touch Filename.txt

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

Move a file

A

mv Filename.txt destination

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

Copy a file

A

cp Filename.txt

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

Used for reading and combining files

A

cat texta.txt textb.txt&raquo_space;textc.txt

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

Search for patterns in files

A

grep ‘ls -l’ commands.txt

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

Change permissions`

A

chmod

e.g chmod ugo (+/-) rwx

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

Print text onto terminal window

A

$ echo Hello world

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

Delete directory

A

rmdir Foldername

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