Mastering Linux Essentials: Must-Know Commands for Success πŸš€

Mastering Linux Essentials: Must-Know Commands for Success πŸš€

Β·

3 min read

Are you ready to level up your Linux skills and boost your career opportunities? πŸ”₯ Familiarizing yourself with these critical Linux commands is a game-changer. πŸ’Ό Join me as we explore the essential commands that every Linux enthusiast should have in their toolkit.

Navigation and File Operations:

  • pwd 🏠:

    • Description: Print current directory.

    • Example: pwd

  • ls πŸ“‚:

    • Description: List files and directories.

    • Example: ls

  • cd πŸšΆβ€β™€οΈ:

    • Description: Change directory.

    • Example: cd /path/to/directory

  • touch ✍️:

    • Description: Create an empty file.

    • Example: touch filename

  • mkdir πŸ“:

    • Description: Create a new directory.

    • Example: mkdir dirname

  • rm πŸ—‘οΈ:

    • Description: Remove files/directories.

    • Example: rm filename

  • cp πŸ“‹:

    • Description: Copy files/directories.

    • Example: cp source destination

  • mv πŸ”„:

    • Description: Move/rename files/directories.

    • Example: mv oldname newname

  • cat 🐱:

    • Description: Display file contents.

    • Example: cat filename

  • less πŸ“–:

    • Description: View large files.

    • Example: less filename

  • head πŸ“:

    • Description: Display file beginning.

    • Example: head filename

  • tail πŸ“„:

    • Description: Display file end.

    • Example: tail filename


Text Processing and Searching:

  • grep πŸ”:

    • Description: Search for a pattern.

    • Example: grep pattern filename

  • sed βœ’οΈ:

    • Description: Text manipulation.

    • Example: sed 's/old/new/g' filename

  • awk πŸ¦‰:

    • Description: Text processing.

    • Example: awk '/pattern/ {print $1}' filename

  • sort πŸ“Š:

    • Description: Sort lines in a file.

    • Example: sort filename

  • uniq πŸš«πŸ“Š:

    • Description: Remove duplicate lines.

    • Example: sort filename | uniq


Archiving and Compression:

  • tar πŸ“¦:

    • Description: Compress and archive files.

    • Example: tar -czvf archive.tar.gz /path/to/folder

  • gzip πŸŒͺ️:

    • Description: Compress files.

    • Example: gzip filename

  • gunzip 🌬️:

    • Description: Decompress files.

    • Example: gunzip filename.gz

  • zip 🀐:

    • Description: Create zip archives.

    • Example: zip archive.zip file1 file2

  • unzip πŸ€πŸ—„οΈ:

    • Description: Extract from zip archives.

    • Example: unzip archive.zip


System and Process Management:

  • ps πŸ”„:

    • Description: List processes.

    • Example: ps

  • top πŸ“Š:

    • Description: Monitor processes.

    • Example: top

  • kill ☠️:

    • Description: Terminate processes.

    • Example: kill PID

  • df πŸ’½:

    • Description: Disk space usage.

    • Example: df

  • du πŸ“ŠπŸ’½:

    • Description: Disk usage.

    • Example: du -sh /path/to/directory

  • uptime ⏱️:

    • Description: System uptime.

    • Example: uptime

  • who πŸ‘€:

    • Description: Show logged-in users.

    • Example: who


Network and Connectivity:

  • ifconfig 🌐:

    • Description: Network info.

    • Example: ifconfig

  • ping πŸ“:

    • Description: Test network.

    • Example: ping hostname

  • ssh πŸ”’:

    • Description: Securely connect.

    • Example: ssh username@hostname

  • scp πŸ“€πŸ”’:

    • Description: Securely copy files.

    • Example: scp source destination

  • wget 🌐πŸ“₯:

    • Description: Download from web.

    • Example: wget URL


File Permissions and Ownership:

  • umask πŸ”:

    • Description: Set permissions.

    • Example: umask 022

  • chgrp πŸ”πŸ‘₯:

    • Description: Change group ownership.

    • Example: chgrp groupname filename

  • passwd πŸ›‘οΈ:

    • Description: Change password.

    • Example: passwd username

  • sudo πŸ›‘οΈπŸ”:

    • Description: Execute as superuser.

    • Example: sudo command


System Information and Utility:

  • date πŸ“…:

    • Description: Display date/time.

    • Example: date

  • history πŸ•°οΈ:

    • Description: Show command history.

    • Example: history

  • alias 🎭:

    • Description: Create command aliases.

    • Example: alias newcommand='originalcommand'

  • man πŸ“–:

    • Description: Display command manuals.

    • Example: man command

  • uname πŸ–₯️:

    • Description: System info.

    • Example: uname -a

  • whereis 🌍:

    • Description: Locate files.

    • Example: whereis filename

Feel the power of Linux at your fingertips! 🐧πŸ’ͺ

Did you find this article valuable?

Support Farhan's Scripted Explorations by becoming a sponsor. Any amount is appreciated!