Linux basic series

Basic Linux commands you should know

Get to know some of the basic Linux commands, to get your self familiar to Linux

Ketan Jadhav
3 min readMay 26, 2024

Before we start let’s us see what is Linux

Linux is an open-source, Unix-based operating system known for its flexibility, security, and community-driven development model.

What makes Linux special compared to other operating systems is its open-source nature, which allows us to modify and distribute the source code, fostering innovation and a collaborative ecosystem.

Linux’s versatility and reliability make it suitable for a wide range of applications, from personal computers to servers and supercomputers.

Some basic Linux commands

echo

echo command in Linux is used to display line of text/string that are passed as an argument . This is a built in command that is mostly used in shell scripts and batch files to output status text to the screen or a file.

ls

The Linux ls(list) command allows you to view a list of the files and folders in a given directory. You can also use this command to display details of a file, such as the owner of the file and the permissions assigned to the file.

read

The linux read command is used to read from a file descriptor. Basically, this command read up the total number of bytes from the specified file descriptor into the buffer. If the number or count is zero then this command may detect the errors. But on success, it returns the number of bytes read.

creating a bash file read.sh

running the file read.sh

cat

The cat (short for “concatenate“) command is one of the most frequently used commands in Linux/Unix-like operating systems. cat command allows us to create single or multiple files, view content of a file, concatenate files and redirect output in terminal or files

test

The test command is used to check file types and compare values. Test is used in conditional execution.

creating a bash file test.sh

running the file test.sh

Thus we have studied some basic Linux commands.

--

--

Ketan Jadhav

I write about Programming | Life | Self-improvement and more.