1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Glob characters
wild cards (have special meaning)
interpreted BEFORE any cmds
specify patterns that match filenames in a directory
*can manipulate all files w/in a specific extension
t*
displays all files in the directory beginning with ‘T’
*t
displays all files in directory ENDING with ‘‘T"
???
? = 1 character
??? - searching for 3 letter extension
r*.conf
start with r
end with .conf
[gu]
matches any file that begins with g or u
[a-d]
searches through a range of characters
[!DP]
used to ignore a range
(ignore files starting with D or P)
cp
copies file, requires a source + destination
-v
(verbose)
excess info
cp -i
prompts user before overwriting file
cp -n
answers no to everything
cp -r
copies files + directories
mv
move a file
rm
delete a file (-i)
rm-r
delete directories (only way)
rmdir
deletes EMPTY directories
mkdir
creates a directory
touch
creates empty file
mv premove postmove
‘cuts’ pre +pastes to post