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! π§πͺ