Unix Flashcards
1
Q
ls
A
list files in current directory
2
Q
ls -l
A
list files in a long format
3
Q
ls -a
A
list all files (including hidden files) in current directory
4
Q
ls -F
A
adds indicators to the list output to identify directories and different types of files.
5
Q
.
A
the current working directory
6
Q
..
A
the parent directory to working directory
7
Q
~
A
your home directory
8
Q
/
A
the root (top-level) directory. This is also the separator for directories
9
Q
*
A
a wildcard meaning any string of characters
10
Q
?
A
a wildcard meaning any single character
11
Q
cp file1 file2
A
makes a copy of file1 and calls it file2
12
Q
mv file1 file2
A
renames file1 to file2
13
Q
rm file1
A
removes (deletes) file1
14
Q
rm -i file1
A
asks for confirmation that you want to delete file1
15
Q
pwd
A
print the working directory