Unix Basics Practice Test: Handling Ordinary Files — Flashcards | Unix Programming | FatSkills

Unix Basics Practice Test: Handling Ordinary Files — Flashcards

Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.

Quiz questions on cat command, cp command, rm and mv command for deleting and renaming files, comparing files, wc command for counting file data, compressing and archiving files.

Ordinary files are the most common type of file in Unix. They contain data that is not associated with any special device or process. Ordinary files can be created, edited, and deleted using standard Unix commands.
Here are some of the commands that you can use to manage ordinary files:
cat: - Displays the contents of a file.
cp: - Copies a file to another location.
mv: - Moves or renames a file.
rm: - Deletes a file.
ls: - Lists the files in a directory.
mkdir: - Creates a new directory.
rmdir: - Removes an empty directory.

You can also use the find command to search for files that meet certain criteria. 

Once you have found a file, you can use the open command to open it for reading or writing.

1 of 96 Ready
Which command is used for displaying contents of a file?
cat
Shortcuts
Prev Space Show / hide Next
Turn this into a study set.
Sign in with Google to save tricky questions to your reminder list and resume on any device.
Sign in with Google Free • no extra password