What is Linux?
Linux is a free and open-source operating system kernel that serves as the foundation for various operating systems, commonly referred to as Linux distributions. Created by Linus Torvalds in 1991, Linux has since become one of the most widely used operating systems in the world.
Linux is known for its stability, security, and flexibility. It operates on a wide range of devices, from personal computers to servers, smartphones, embedded systems, and supercomputers. Linux distributions, such as Ubuntu, Fedora, Debian, and CentOS, build upon the Linux kernel and provide a complete operating system with additional software and tools.
Features of Linux.
✅It's open source.
✅It's very secure and easy to use.
✅Smiplified updates for all installed software.
✅It's very lightweight.
✅Linux is multiuser-multitask.
✅It has mul
Linux File Hierarchy Structure.
/root:- it is the home directory for the root users
/home:- Home directory for the users.
/boot: -it contains bootable files for Linux.
/etc:- it contains all configuration files
/usr: - by default software is installed in this directory.
/bin:- it contains commands used by all users.
/sbin:- It contains commands used by only the root user.
/opt- optional application software package.
/dev:- Essential device files include terminal devices, usb or any device attached to the system
Linux commands and Uses :
There are Some of the most basic Linux commands include:
ls
: Lists files and directories in the current directory.eg:- ls -l (lists files in long format)
cd
: Changes the current directory.eg:- cd /path/to/directory
(changes to a specific directory)pwd
: Prints the current working directory.history:
It shows the list of previously used commands.date
:- It shows the date and time.whoami
:- It shows the current login username.
Cat Command:
the cat command is one of the most universal tools, yet all it does is copy standard input to standard output.
cat >file1
this command is used to contact the files.
cat file1 file2 >file3
touch:
touch command is used to create multiple empty files
touch /blog{1..5}
mkdir:
it's used to create a directory -p is used to create multiple directories inside the directory
mkdir devops
mkdir -p devops/devops1/devops2
For Multiple Directory
mkdir /new {1..10}
cp:- this command is used to copy the file
cp file1 file2
mv:- this command is used to move the file from one another file and also is used to rename the file name
mv file3 file4
mv file3 newfile
echo: It's used for print the data.
echo "hello this is linux blog"
Conclusion These are just a few of the most important basic Linux commands. There are many other commands that you can learn, but these will give you a good foundation for working with Linux.
Thank you for reading!
Contact me at :
linkedin: https://www.linkedin.com/in/sutish-pradhan/
E-mail: psutish@gmail.com