Command Line Flashcards
1
Q
man
A
use man with an argument to see name of program, utility or function
2
Q
cat
A
Concatenate files or if 1 file, print the standard output
3
Q
ls
A
- View the list directory contents
- ls -a to see hidden files
4
Q
pwd
A
Print the working directory
5
Q
echo
A
Display a line of text, or add a line to text
6
Q
touch
A
- Update access and modification times of each file to current time
- Makes a new file if it doesn’t not exist
7
Q
mkdir
A
- Creates directories that doesnt exist
- Make parent directories with -p , parent/child/grandchild
8
Q
mv
A
Rename a file or directory
9
Q
rm
A
Remove a file or directory
10
Q
cp
A
Copy a file or directory
11
Q
What are the three virtues of a great programmer?
A
Laziness, Impatience, Hubris
12
Q
Difference between a folder and a directory
A
Folders have icons