Day 3: Essential Linux Commands
pratik davda
nopCommerce Certified Developer | Technical Consultant | Scaling E-commerce with Azure
Hey LinkedIn Family,
Welcome to Day 3 of my DevOps journey! Today, we’ll be exploring some essential Linux commands that are crucial for navigating and managing your Linux environment. These commands will help you perform basic tasks efficiently.
Getting Started with Linux Commands
Before diving into the commands, here are some essential rules to keep in mind:
User Information
1. who
2. whoami
3. id
4. groups
5. sudo (Five ways to become a superuser)
1) sudo -i
2) sudo -s
3) sudo su -
4) sudo -root
5) su -
6. users
7. clear
8. lastlog
File & Directory Commands
1. pwd
2. ls
3. cd 'Name of folder' or 'Path'
4. mkdir
5. rmdir
Options:
-p: Removes directory and its ancestors.
-v: Verbose mode.
6. cd ..
7. touch 'filename.extension'
领英推荐
Installing Packages
1. yum
Example:
yum install package_name
2. yum info
Example:
yum info package_name
3. yum remove
Example:
yum remove package_name
4. ./filename
Disk Usage Commands
1. du
Example:
du path_of_directory
2. du -h
Example:
du -h path_of_directory
3. du -sh
Example:
du -sh name_of_directory
### System & Hardware Information
1. uname -a
2. uname -s
3. uname -r
4. uname -m
5. uname -o
Mastering these essential commands is a significant step towards becoming proficient in Linux and advancing in your DevOps journey. Stay tuned for tomorrow’s update where we’ll dive into more advanced Linux topics!
#DevOps #Linux #Day3 #LinuxCommands #ContinuousLearning #TechJourney