Rakesh Jain
Rakesh Jain

@devops_tech

28 Tweets 4 reads Sep 19, 2023
Mastering Linux Basics!
A brief explanation of 25 important Linux concepts with examples for Absolute BeginnersπŸ‘‡πŸ§
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.
2/ πŸ“ Directories:
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."
4/ πŸ–₯️ Terminal:
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.
6/ πŸ“‚ Navigation:
"cd" is used for navigation.
"cd /" goes to the root directory.
7/ πŸ—‘οΈ Deleting:
"rm" removes files.
"rm myfile.txt" deletes "myfile.txt."
8/ πŸ“‹ Copying:
"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.
10/ 🌐 Networking:
"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.
12/ πŸ”’ Permissions:
Files have read, write, execute permissions.
"chmod 755 file" gives read/execute rights.
13/ πŸ–₯️ Users:
"whoami" shows your username.
"useradd" adds a new user.
14/ πŸ” Passwords:
"passwd" changes your password.
"sudo" grants superuser privileges.
15/ πŸ“„ Text Editing:
"nano" or "vim" are text editors.
"nano myfile.txt" opens for editing.
16/ πŸ“‚ Directory Listing:
"ls -l" shows detailed file info, including permissions.
17/ πŸ“ File Content:
"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.
19/ πŸš€ Shell Scripts:
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.
21/ 🚧 File Compression:
"tar" and "zip" compress files.
"tar -czvf archive.tar.gz folder" creates a compressed archive.
22/ πŸ–₯️ Remote Access:
"ssh" connects remotely.
"ssh user@hostname" logs into a remote server.
23/ πŸ“† Scheduling Tasks:
"cron" automates tasks.
"crontab -e" edits the task scheduler.
24/ πŸ“Š Monitoring:
"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.
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...