Linux Filesystem Commands Flashcards
1
Q
cp command
A
Copies files
2
Q
mv command
A
- Moves & renames files/directories
- Does not move the data on the HD if new dest is on the same PC
3
Q
ln origname linkname
A
Create a hard link to non-directory file
4
Q
ln -s origname linkname
A
Create symbolic link to a file or directory file
5
Q
Classes of Wildcard in Linux
A
- ?
- *
- [value]
6
Q
’?’ wild card
A
Stand in for a single character
7
Q
‘*’ wild card
A
Match any character, set of characters, or none at all.
8
Q
’[value]’
A
Match any character in the set of brackets
b[ao][lw]l will match for
bowl
ball
but not bull
9
Q
mkdir command
A
create new directory
10
Q
rmdir command
A
- Remove an empty directory
11
Q
rmdir -p command
A
- Remove a directory
- Containing only directory files
- Will not work if it contains any non-directory files
12
Q
rm -r command
A
- Remove file
- Recursive, remove directory files containing non-directory files
13
Q
touch command
A
- Create a non-directory file
- Can update and existing directory’s time stamp only
14
Q
cp command
A
- Copy a file
- -r or -a to copy a directory, all contents
15
Q
mv command
A
- move directories or files