Lesson 2 Flashcards

1
Q

ls -a

A

Lists all contents of a directory including hidden files and directories

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

ls -l

A

Lists all contents in long format (detailed)

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

ls -t

A

Lists all contents in order (last time they were modified)

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

cp

A

Copy files
cp source/file.txt destination
cp * source (copies all files)
cp x*.txt source (copies all files that begin with x letter and end with .txt)

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

mv

A

Moves file
mv file.txt destination
mv fileName1.txt fileName2.txt (changes name)

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

rm

A

Remove file or directory
rm file.rxt
rm -r source (removes directory and all child files/directories)
PERMANENT

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