Basic Linux Commands for Developers

Posted by

Linux is a popular operating system for servers, supercomputers, and personal computers. It is totally open-source and free. I am using a Linux machine in my organization for creating applications, deploying my applications on-premises servers as well as on Cloud machines.

I use some Linux commands on a daily basis for listing the file, creating files/folders, giving permission to the file and folder, Loggin to the server by command, etc.

Here is the list of Basic Linux commands for developers:

ls – List:

The most frequently used command in Linux for listing directories.

ls -a: It is used to list the hidden file as well.

pwd – Print Working Directory

It prints the working directory in Linux.

mkdir – Make Directory

mkdir uses to make the new directory/folder in Linux

cd – Change Directory

It is used to navigate through directories.

cp – Copy

cp command uses to copy files or folders from one location to another.

You can use the below command for a recursive copy.

mv – Move

The command moves a file or folder from one location to another. Also, It is used for renaming the file and folder.

rm – Remove

rm command deletes the files or folder.

If you want to delete the folder and its file recursively then you can use the below command.

touch

touch command creates blank/empty files.

sudo – Superuser DO

Some of the commands require administration or root permission to perform the tasks so we use sudo before that command.

chmod – Change Mode

chmod command uses to change permissions of files and directories.

chown – Change Owner

chown command uses to change ownership of files and directories.

ping – Packet Internet Groper

Ping command allows checking the connectivity status of a server.

Also, you can check connectivity using an IP address.

SSH – Secure Shell

SSH command uses to log in to the server. We use a userName and IP address of the machine to login into the server. Below is the ssh command format.

cat – Concatenate

cat(Concatenate) command displays file contents on the terminal.

clear

It clears the terminal display.

top – Table of Processes

Simply type top on the command line to get a list of all active Linux processes, including information on running tasks, memory, CPU, and swap.

ifconfig – Interface Config

It displays network interfaces and IP addresses.

ps – Precess Status

It displays active processes.

kill

It kills active processes by process ID or name.

zip – Zip files in Linux

unzip – Unzip files in Linux

These are the Basic Linux Commands for Developers. You can read the Linux command from the Ubuntu site.

Here is some online course for Linux commands:

Leave a Reply

Your email address will not be published. Required fields are marked *