Viewing and Managing Files

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:13 PM on 5/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

29 Terms

1
New cards

Stands for list. It is a Linux command used to display the contents of a directory. By default, it lists files and directories in the current directory.

ls

<p>ls</p>
2
New cards

Stands for remove. It is a Linux command used to delete files and directories.

By default, ___ removes files permanently from the filesystem.

rm

<p>rm</p>
3
New cards

Stands for concatenate. It is a Linux command used to display file contents and combine multiple files together. The ___ command reads data from files and sends the contents to STDOUT, usually displaying the text on the terminal.

cat

<p>cat</p>
4
New cards

Stands for copy. It is a Linux command used to copy files and directories from one location to another. The ___ command creates a duplicate of the original file or directory while leaving the original unchanged.

cp

<p>cp</p>
5
New cards

Stands for move. It is a Linux command used to move or rename files and directories. The ___ command changes the location or name of a file or directory without creating a duplicate copy.

mv

<p>mv</p>
6
New cards

Linux command used to view the contents of a text file one screen at a time. It is a pager program that allows users to read long files without displaying the entire file at once. The ___ command primarily moves forward through the text and has limited backward navigation capabilities.

more

<p>more</p>
7
New cards

Linux command used to view text files and command output one screen at a time. It is a pager program similar to more, but it provides more advanced navigation features, including both forward and backward movement through text.

less

<p>less</p>
8
New cards

Linux command used to display the beginning portion of a file or command output. By default, ___ shows the first 10 lines. It is commonly used to quickly preview files without opening the entire contents.

head

<p>head</p>
9
New cards

Linux command used to display the ending portion of a file or command output. By default, ___ shows the last 10 lines. It is commonly used to monitor logs and inspect the most recent entries in a file.

tail

<p>tail</p>
10
New cards

Displays files and directories in long listing format, showing detailed permissions and metadata information.

ls -l

<p>ls -l</p>
11
New cards

Displays all files and directories, including hidden files. In Linux, hidden files and directories usually begin with a period (.). By default, the regular ls command does not display these hidden entries.

ls -a

<p>ls -a</p>
12
New cards

Displays files and directories in long listing format with human-readable file sizes.

ls -lh

<p>ls -lh</p>
13
New cards

Sorts files and directories by modification time, showing the most recently modified items first.

ls -t

<p>ls -t</p>
14
New cards

Sorts files and directories by file size, displaying the largest items first.

ls -S

<p>ls -S</p>
15
New cards

Displays files and directories in long listing format while also showing inode numbers.

ls -li

<p>ls -li</p>
16
New cards

Prompts the user for confirmation before deleting files.

rm -i

<p>rm -i</p>
17
New cards

Recursively removes directories and their contents.

rm -r

<p>rm -r</p>
18
New cards

Recursively removes files and directories without prompting for confirmation.

rm -rf

<p>rm -rf</p>
19
New cards

Forces deletion and suppresses many errors.

rm -f

<p>rm -f</p>
20
New cards

Displays file contents with line numbers.

cat -n

<p>cat -n</p>
21
New cards

Recursively copies directories and their contents.

cp -r

<p>cp -r</p>
22
New cards

Prompts the user for confirmation before overwriting existing files during a copy operation. This safety feature helps prevent accidental overwriting of files.

cp -i

<p>cp -i</p>
23
New cards

Displays detailed information about files and directories being copied.

cp -v

<p>cp -v</p>
24
New cards

Copies files while preserving metadata such as timestamps, permissions, and ownership information.

cp -p

<p>cp -p</p>
25
New cards

Prompts the user for confirmation before overwriting files during move or rename operations.

mv -i

<p>mv -i</p>
26
New cards

Replacing the contents of an existing file.

Overwrite

27
New cards

Adding data to the end of an existing file without deleting current contents.

Append

28
New cards

Operation applied through all nested files and directories.

Recursive Operation

29
New cards

File sizes displayed using KB, MB, GB instead of raw bytes.

Human-Readable Sizes