1/ π File System:
#Linux uses a hierarchical file system. "/" is the root directory.
For example, "/home/user" is a path to the user's home directory.
#Linux uses a hierarchical file system. "/" is the root directory.
For example, "/home/user" is a path to the user's home directory.
2/ π Directories:
Directories are like folders.
"mkdir myfolder" creates a new directory named "myfolder."
Directories are like folders.
"mkdir myfolder" creates a new directory named "myfolder."
3/ π Files:
Files store data.
"touch myfile.txt" creates an empty file named "myfile.txt."
Files store data.
"touch myfile.txt" creates an empty file named "myfile.txt."
4/ π₯οΈ Terminal:
Linux is managed through a command-line terminal.
Open it using Ctrl+Alt+T.
Linux is managed through a command-line terminal.
Open it using Ctrl+Alt+T.
5/ π Commands:
Use commands to perform actions.
"ls" lists files in the current directory.
Use commands to perform actions.
"ls" lists files in the current directory.
6/ π Navigation:
"cd" is used for navigation.
"cd /" goes to the root directory.
"cd" is used for navigation.
"cd /" goes to the root directory.
7/ ποΈ Deleting:
"rm" removes files.
"rm myfile.txt" deletes "myfile.txt."
"rm" removes files.
"rm myfile.txt" deletes "myfile.txt."
8/ π Copying:
"cp" copies files.
"cp file1 file2" duplicates "file1" as "file2."
"cp" copies files.
"cp file1 file2" duplicates "file1" as "file2."
9/ π¦ Packages:
Linux software is managed in packages.
"apt-get install package" and "yum install package" installs software.
Linux software is managed in packages.
"apt-get install package" and "yum install package" installs software.
10/ π Networking:
"ifconfig" shows network info.
"ping google[dot]com" tests internet connectivity.
"ifconfig" shows network info.
"ping google[dot]com" tests internet connectivity.
11/ π§© Processes:
"ps" lists running processes.
"kill PID" terminates a process by its ID.
"ps" lists running processes.
"kill PID" terminates a process by its ID.
12/ π Permissions:
Files have read, write, execute permissions.
"chmod 755 file" gives read/execute rights.
Files have read, write, execute permissions.
"chmod 755 file" gives read/execute rights.
13/ π₯οΈ Users:
"whoami" shows your username.
"useradd" adds a new user.
"whoami" shows your username.
"useradd" adds a new user.
14/ π Passwords:
"passwd" changes your password.
"sudo" grants superuser privileges.
"passwd" changes your password.
"sudo" grants superuser privileges.
15/ π Text Editing:
"nano" or "vim" are text editors.
"nano myfile.txt" opens for editing.
"nano" or "vim" are text editors.
"nano myfile.txt" opens for editing.
16/ π Directory Listing:
"ls -l" shows detailed file info, including permissions.
"ls -l" shows detailed file info, including permissions.
17/ π File Content:
"cat" displays file content.
"cat myfile.txt" shows the content of "myfile.txt."
"cat" displays file content.
"cat myfile.txt" shows the content of "myfile.txt."
18/ π€ File Transfer:
"scp" copies files between systems.
"scp file.txt user@remote:/path" copies to a remote server.
"scp" copies files between systems.
"scp file.txt user@remote:/path" copies to a remote server.
19/ π Shell Scripts:
Create reusable scripts using commands.
Save as ".sh" and run with "bash script.sh."
Create reusable scripts using commands.
Save as ".sh" and run with "bash script.sh."
20/ π§° Environment Variables:
Store settings as variables.
"export VAR=value" sets a variable.
Store settings as variables.
"export VAR=value" sets a variable.
21/ π§ File Compression:
"tar" and "zip" compress files.
"tar -czvf archive.tar.gz folder" creates a compressed archive.
"tar" and "zip" compress files.
"tar -czvf archive.tar.gz folder" creates a compressed archive.
23/ π Scheduling Tasks:
"cron" automates tasks.
"crontab -e" edits the task scheduler.
"cron" automates tasks.
"crontab -e" edits the task scheduler.
24/ π Monitoring:
"top" shows system stats.
"htop" provides an interactive process viewer.
"top" shows system stats.
"htop" provides an interactive process viewer.
25/ π File Permissions:
"chown" changes file ownership.
"chown user:group file" changes owner and group.
"chown" changes file ownership.
"chown user:group file" changes owner and group.
Linux offers powerful capabilities, and these concepts are just the beginning. π§π‘ #LinuxBasics #LinuxBeginner #DevOps
Repost the thread if you find it useful. Thanks!
Loading suggestions...