Terminal Flashcards
1
Q
ls
A
list all files
2
Q
ls -a
A
shows ALL files even hidden
3
Q
ls -l
A
gives you a long list of everything
4
Q
ls -la
A
list a long list of everything
5
Q
pwd
A
shows you where you are
6
Q
How to go to a new directory then go back to previous
A
pushd
popd
7
Q
How to know what your looking at
A
file
8
Q
find files by name
A
locate
9
Q
locate a command
A
which
10
Q
create a directory/make directories
A
mkdir …
11
Q
change file timestamps/create empty files
A
touch …
12
Q
copy files and directories
A
cp
13
Q
move (rename) files
A
mv
this can overwrite the file
14
Q
remove a file
A
rm
15
Q
remove a file to get rid of everything
A
rm *