Performing basic file management Flashcards
What does the command ls do
displays a list of files and directories
What does the command touch do
modifies a files time stamp but more often used to create an empty file
What does the command cp do
makes a copy of a file
what does the command rm do
deletes a file from the system
What does the command mv do
move or rename a file
What does the command file do
determines a file type
What does the command cd do
changes the directory
what does the command mkdir do
makes a new directory
What does the command rmdir do
deletes a directory with any content
What does the $Path command do
variable that describes the directories that the currently logged in user can run applications from without specifying their full path
What does the command dd do
Copies and converts files. Often used to create files of arbitrary size and to back up disk drives
What does the command tar do
Wraps up files and folders into an archive file. This command does not provide compression on its own
What does the command gzip do
Command that creates .gz compressed files
What does the command gunzip do
extracts gz compressed files
What does the command bzip2 do
creates .bz2 compressed files
what does the command bunzip2 do
extracts .bz2 compressed files
What does the command unx2 do
extracts .xz compressed files
What does the command -name do
Find files based on their name
What does the command -ctime do
Find all files based on the time when they were last changed
What does the command -atime do
Find files based on their access time
What does the command -empty do
Find files or folders that are empty
What does the command -exec [command] {} : do
The exec statement for the find command that will act on the results of the find command itself
What does the “.” do in a command
Matches zero or more characters
What does the command ? do
Matches any single character
What does [abc] do
Matches any one of the characters in the list, case sensitive
What does [^abc] do
Matches any one character except those in the list, case sensitive
What does the commands [0-9] do
Matches a range of numbers