Table of contents
- What is Linux?
- Basic Linux Commands:
- 1. Let's list the Contents of a Directory ποΈ
- 2. Let's check out our Working Directory ποΈ
- 3. Let's check the current user of the system π§π»βπ»
- 4. Let's check the list of the previous commands used in the system π
- 5. Let's check the date & time of the system π
- 6. Let's check the system informationπ¬
Day 2 of #90daysofdevops
What is Linux?
Linux is a free and open-source operating system which is developed by Linus Torvalds in the year 1991. many students think that to code a good operating system they must need to know an exceptional amount of coding and a few other skills.
But the Amazing fact is when Linus Torvalds developed Linux in 1991 he was a student at the University of Helsinki, Finland, USA.
Today after so many years Linux has now become one of the most popular operating systems. Today almost 90% of the fastest supercomputers out of 500 run on Linux variants including the top 10 supercomputers.
Now that we know what Linux is let's learn some basic commands of Linux
Basic Linux Commands:
1. Let's list the Contents of a Directory ποΈ
Use the
ls
command to view the contents of a Directory in Linux.
- Example: To view what files are inside the directory just type
ls
and press Enter.
ls
2. Let's check out our Working Directory ποΈ
Use the
pwd
command to view which directory you're working inside.
- Example: To view the directory name just type
pwd
and press Enter.
pwd
3. Let's check the current user of the system π§π»βπ»
Use the
whoami
command to view the current username of the system.
- Example: To view the current user of the system just type
whoami
and press Enter.
whoami
4. Let's check the list of the previous commands used in the system π
Use the
history
command to view the previously used commands in Linux.
- Example: To view the previously used commands just type
history
and press Enter.
history
5. Let's check the date & time of the system π
Use the
date
command to view the date and time in Linux.
- Example: To view the current date and time of the system just type
date
and press Enter.
date
6. Let's check the system informationπ¬
Use the
lsb_release -a
command to view the information about your specific Linux.
- Example: To view the system information just type
lsb_release -a
and press Enter.
lsb_release -a
These are some of the basic commands that are in linux but don't worry in the upcoming articles we will see many commands including basic and advanced commands of the Linux operating system.
Some of you might think that this article is very short but always remember slow and steady wins the race.
~Dipen : )