Lecture 4 -- Permission & Commands

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

1/40

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:22 PM on 5/1/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

41 Terms

1
New cards
Text Editor
an application used to create, view and modify text files
2
New cards
Why is a text editor important in linux
many system configuration files are stored as text files and must be edited by administrators
3
New cards
Vim
a powerful command-line text editor with multiple modes (insert and command mode)
4
New cards
Nano
a simple and user-friendly command-line text editor with on-screen shortcuts
5
New cards
Gedit
a GUI-based text editor used in desktop environments, easiest to use
6
New cards
Motion
single-key shortcuts used to navigate within files in command mode (Vim)
7
New cards
Locate
searches for file names using a database (mlocate), very fast but results may be outdated
8
New cards
Find
recursively searches directories using criteria, slower but accurate and real-time
9
New cards

Locate vs Find

  • locate uses a database (fast, may be outdated)

  • find searches the filesystem directly (slower, accurate)

10
New cards
Which command
displays the full path of a command (e.g. which ls → /bin/ls)
11
New cards
Whereis command
displays locations of binaries, source files and manual pages of a command
12
New cards
cat command
displays and combines text files
13
New cards
head
displays the first 10 lines of a file (default)
14
New cards
tail
displays the last 10 lines of a file (default), use -f to follow updates in real time
15
New cards
less and more
view long files page by page, less is more advanced and preferred
16
New cards
cp command
copies files, use -r option to copy directories recursively
17
New cards
mv command
moves or renames files and directories
18
New cards
touch command
creates an empty file or updates file timestamp
19
New cards
rm
removes files or directories, use -r to remove directories recursively (dangerous)
20
New cards
mkdir
creates directories
21
New cards
rmdir
removes empty directories only
22
New cards
ls
lists directory contents, use -l to display permissions and details
23
New cards
echo
displays text or writes output to a file
24
New cards
tr
translates or replaces characters (e.g. uppercase to lowercase)
25
New cards
wc
counts number of lines, words and characters in a file
26
New cards
sort
sorts lines in a file alphabetically or numerically
27
New cards
cut
extracts specific parts (fields) of text
28
New cards
paste
merges lines of files horizontally
29
New cards
diff
compares two files and shows differences
30
New cards
grep
searches for patterns (text) inside files
31
New cards
awk
a powerful pattern scanning and processing tool for text
32
New cards
sed
a stream editor used to modify text (e.g. search and replace)
33
New cards
ln
creates links between files
34
New cards
Hard link
points to the same data as the original file, remains even if original file is deleted (same inode)
35
New cards
Soft link (symbolic link)
a shortcut to another file, breaks if original file is deleted
36
New cards
text stream
a sequence of text data that can be read or written by commands
37
New cards
standard input (stdin)
input stream used by a command (default: keyboard)
38
New cards
standard output (stdout)
output stream used by a command (default: terminal)
39
New cards
standard error (stderr)
stream used for error messages
40
New cards
tee
displays output and writes it to a file at the same time
41
New cards
/dev/null
a special file that discards all data written to it