Linux Commands

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

1/61

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key Linux/Unix command concepts, options, and file-system operations mentioned in Page 1 notes.

Last updated 3:03 PM on 8/14/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

62 Terms

1
New cards

ls

List the contents of a directory.

2
New cards

ls -a

Show all files, including hidden ones (dotfiles).

3
New cards

ls -R

Recursively list a directory and all its subdirectories.

4
New cards

ls -l

Long listing: shows permissions, owner, size, and date. Also the alias l or ll.

5
New cards

ls -S

Sort entries by size, largest first.

6
New cards

ls -Sr

Sort by size with reverse order.

7
New cards

Single quotes

Preserve literal value; no shell expansion inside.

8
New cards

Double quotes

Preserve most characters but allow variable expansion and command substitution.

9
New cards

Command substitution

Run a command inside another command and substitute its output (e.g., date or $(date)).

10
New cards

Shell variable

A variable defined in the shell; local unless exported.

11
New cards

export

Promote a shell variable to an environment variable for child processes.

12
New cards

PATH

Colon-separated directories to search for executables; view with echo $PATH.

13
New cards

Backslash escape

Escape a metacharacter so the shell treats it literally.

14
New cards

unset

Remove a shell variable or function from the current session.

15
New cards

alias

Create a shortcut for a command or sequence of commands; view with alias.

16
New cards

asterisk (*) in

matches 0 or more characters in filenames.

17
New cards

whereis

Find the locations of a command, its binary, source, and man page.

18
New cards

locate

Find files by name using a prebuilt index; update with updatedb.

19
New cards

updatedb

Update the locate database used for fast searching.

20
New cards

man

Manual pages for commands; access command documentation.

21
New cards

man -f

Show a brief description of a command from its manual page.

22
New cards

man -k

Search manual pages by keyword (apropos).

23
New cards

Globbing with brackets [ ]

Match exactly one character from the set inside the brackets.

24
New cards

root directory

Top of the filesystem; represented by /.

25
New cards

pwd

Print the current working directory.

26
New cards

cd

Change the current directory; examples: cd Documents, cd .., cd ../../Downloads.

27
New cards

Absolute path

An full path starting from root, e.g., /home/user.

28
New cards

Relative path

A path relative to the current directory.

29
New cards

ln

An additional directory entry for the same inode; same file content.

Hard Link

30
New cards

ln -s

A shortcut pointing to another file.

Soft link

31
New cards

cp

Copy files or directories; common options: -i (confirm before overwrite), -r (recursive), -v (verbose).

32
New cards

mv

Move or rename files; options: -i, -v, -n (no clobber).

33
New cards

rm

Remove files or directories; options: -r (recursive), -f (force), -i (prompt).

34
New cards

touch

Create an empty file or update file timestamps.

35
New cards

cat

Display or concatenate file contents.

36
New cards

echo

Print text to standard output; can redirect to a file.

37
New cards

mkdir

Create a directory; -p creates parent directories as needed.

38
New cards

head

Display the first N lines of a file (default 10).

39
New cards

tail

Display the last N lines of a file; -n specifies how many lines.

40
New cards

tr

Translate or delete characters; e.g., uppercase conversion (tr 'a-z' 'A-Z').

41
New cards

sort

Sort lines of text in a file or from input.

42
New cards

wc

Count lines, words, and bytes; use -l, -w, and -c.

43
New cards

cut

Extract fields from lines; -d sets the delimiter, -f selects fields.

44
New cards

grep

Search for a pattern in files using basic regular expressions.

45
New cards

egrep

grep with extended regular expressions (supports ?, +, |).

46
New cards

groupadd

Create a new group; -g selects a specific GID.

47
New cards

useradd

Create a new user account; -D shows default values when needed.

48
New cards

passwd

Set or update a user's password.

49
New cards

who

Show users currently logged in.

50
New cards

w

Show who is logged in and what they are doing.

51
New cards

usermod

Modify a user account; -aG adds to supplementary groups; -g sets primary group.

52
New cards

userdel

Delete a user account.

53
New cards

su

Switch user to another user within the current session.

54
New cards

exit

Exit the current shell/session.

55
New cards

chmod

Change file permissions; use symbolic (u/g/o/a +/-/=) or octal (e.g., 754).

56
New cards

chmod 754

Permissions: user rwx, group r-x, others r--.

57
New cards

cp -v

Copy files and directories with verbose output, showing what is being copied.

58
New cards

cp -i

Copies files or directories interactively, prompting before overwriting. The user must confirm before replacing an existing file.

59
New cards

cp -r

Copies files and directories recursively, including all subdirectories.

60
New cards

mv -v

Moves files and directories with verbose output, displaying the actions being taken during the move.

61
New cards

mv -i

Moves files or directories interactively, prompting before overwriting any existing files.

62
New cards

mv -n

Moves files or directories without overwriting existing files, retaining the original files.

Explore top notes

note
0.2: Pre-Colonial America
Updated 1253d ago
0.0(0)
note
Chapter 20 - Biochemistry
Updated 1195d ago
0.0(0)
note
Hidi and Renninger: Interest
Updated 1281d ago
0.0(0)
note
Terms
Updated 1055d ago
0.0(0)
note
Apostrophes
Updated 1145d ago
0.0(0)
note
Chapter 1: Basic Economic Concepts
Updated 1335d ago
0.0(0)
note
Balladyna
Updated 1113d ago
0.0(0)
note
0.2: Pre-Colonial America
Updated 1253d ago
0.0(0)
note
Chapter 20 - Biochemistry
Updated 1195d ago
0.0(0)
note
Hidi and Renninger: Interest
Updated 1281d ago
0.0(0)
note
Terms
Updated 1055d ago
0.0(0)
note
Apostrophes
Updated 1145d ago
0.0(0)
note
Chapter 1: Basic Economic Concepts
Updated 1335d ago
0.0(0)
note
Balladyna
Updated 1113d ago
0.0(0)

Explore top flashcards

flashcards
15. Metabolism
59
Updated 515d ago
0.0(0)
flashcards
Respiratory (test 3)
48
Updated 1211d ago
0.0(0)
flashcards
Preterite and Imperfect
44
Updated 341d ago
0.0(0)
flashcards
bio exam 3!!
99
Updated 845d ago
0.0(0)
flashcards
DECA Marketing Cluster
241
Updated 772d ago
0.0(0)
flashcards
Christianity quotes
77
Updated 315d ago
0.0(0)
flashcards
15. Metabolism
59
Updated 515d ago
0.0(0)
flashcards
Respiratory (test 3)
48
Updated 1211d ago
0.0(0)
flashcards
Preterite and Imperfect
44
Updated 341d ago
0.0(0)
flashcards
bio exam 3!!
99
Updated 845d ago
0.0(0)
flashcards
DECA Marketing Cluster
241
Updated 772d ago
0.0(0)
flashcards
Christianity quotes
77
Updated 315d ago
0.0(0)