Lesson 2 Flashcards
1
Q
ls -a
A
Lists all contents of a directory including hidden files and directories
2
Q
ls -l
A
Lists all contents in long format (detailed)
3
Q
ls -t
A
Lists all contents in order (last time they were modified)
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)
5
Q
mv
A
Moves file
mv file.txt destination
mv fileName1.txt fileName2.txt (changes name)
6
Q
rm
A
Remove file or directory
rm file.rxt
rm -r source (removes directory and all child files/directories)
PERMANENT