Ubuntu Linux: Working with Files Flashcards
What command prompt determines the file type?
[file]
What can you follow [cd] with to move up one directory?
[cd ..]
What command serves the purpose of creating files?
[touch]
What is used to remove files OR directories?
[rm]
What occurs when you follow [rm] command with [-i]?
This runs the remove command in a way that has you verify the removal of files/directories.
How can you utilize [rm] to remove directories?
You will need to follow it up with [rf] to remove a directory.
What is the command to copy files?
[cp]
How can you make the [cp] command function on directories?
Follow [cp] with -r to copy directories.
What can be used to move files?
[mv]
True or False: You can use the [mv] command to not only move files but also rename them in the process.
True, to do this, you follow the directory with the new name of file within the command
Ex: [mv file2.txt test/documents/confidential newfile2.txt]