Essential Linux Commands and File Management Techniques

studied byStudied by 1 person
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 41

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

42 Terms

1

rmdir

Remove a directory (only works for empty directories)

New cards
2

cp

Copy files or directories

New cards
3

pwd

Print current working directory

New cards
4

ls

List directory contents

New cards
5

ls -l

List with detailed info (permissions, size, etc.)

New cards
6

ls -a

List hidden files

New cards
7

cd

Change directory

New cards
8

cd ..

Move up one directory

New cards
9

cd ~

Move to home directory

New cards
10

mkdir

Create a new directory

New cards
11

rm -r

Remove a directory and its contents

New cards
12

cp -r

Copy directories recursively

New cards
13

mv

Move or rename files

New cards
14

rm

Remove files

New cards
15

rm -f

Force remove (use with caution)

New cards
16

touch

Create an empty file

New cards
17

chmod

Change file permissions

New cards
18

chown

Change file ownership

New cards
19

ls -l (permissions)

Shows file permissions in the listing (drwxr-xr-x)

New cards
20

cat

View contents of a file

New cards
21

less

View file contents page by page

New cards
22

head

View the first few lines of a file

New cards
23

tail

View the last few lines of a file

New cards
24

tail -f

Continuously view new lines in a file (useful for logs)

New cards
25

nano

Simple text editor

New cards
26

vim

More advanced text editor

New cards
27

find

Search for files

New cards
28

grep

Search inside files for text patterns

New cards
29

top

Real-time system monitor for processes

New cards
30

ps

View current processes

New cards
31

ps aux

Detailed process list

New cards
32

df

Disk space usage

New cards
33

du

Disk usage of directories and files

New cards
34

free

Memory usage

New cards
35

tar

Archive files

New cards
36

tar -cvf

Create archive

New cards
37

tar -xvf

Extract archive

New cards
38

gzip

Compress files

New cards
39

gzip file.txt

Compress file

New cards
40

gunzip

Decompress file

New cards
41

Numerical Notation (rwx)

7 = Read + Write + Execute, 6 = Read + Write, 5 = Read + Execute, 4 = Read

New cards
42

Example: chmod 755 file.sh

Owner has all permissions, group and others can read and execute

New cards
robot