Skip to main content

Some Linux basic commands and concepts that every programmer should know

How Linux commands work ?


Installation of any operating system consumes some space on the hard disk and obviously, this space is taken by some internal folders and files, this file and folders have all the information about existing software and even ready to adapt information of other folder's that user will install.

Every time a programmer type commands behind the system CPU will process or execute the file where the code of that particular command is written.

Basic commands

  • firefox
  • cd
  • ls
  • pwd
  • mkdir
  • vi, vim, gedit
  • df -l
  • ps -aux

#firefox

This command will help to launch the Firefox browser using the command line interface and it can be easily terminated by using the ctrl + c shortcut. 

If you use the ctrl + c shortcut the Firefox browser will close or terminate.

image-description

image-description

#cd (change directory) 

This command will use for switching to another directory it is the same as opening another folder in windows, mac, or any other operating system.


image-description

#ls

'ls' command will list all the files and folders that are present in the working directory.

image-description

#pwd (present working directory)

pwd will give you information about in which directory you are in.

image-description

#mkdir

For creating the directory we always use 'mkdir' command.

image-description

#vim, vi, gedit

Above mentioned commands are the text editor commands by using these commands you can edit the file and even if the file does not exist then this text editor will first create the file and then put all the content in it.

image-description

#df -l

'df' command will show all the information about the file storage i.e. information about used and empty space available for mounted disks.

image-description

#ps -aux

As we start any process or rum any command or software's in the system there is always one process run behind the scene and the system gives one ID to this process for identification.

All the processes that are running at the time can be seen by 'ps -aux' command.


image-description

Support me by subscribing blog if you like it. It also motivates me to write better and precise content.



 






Comments

  1. Dude you missed the command which I felt was most important. "sudo"
    By the way I want to ask if we can mkdir in root ? Meaning does it support sudo ?

    ReplyDelete
  2. Yeah, I missed it there is a reason If you noticed that I log in with the root account and sudo command is used by other than root users to give the admin power to other users.
    definitely, the root user can do everything on the system [mkdir and even can read most critical files i.e. /etc/shadow].
    there is no question of using sudo by root user because the root user is the admin.

    ReplyDelete

Post a Comment

Popular posts from this blog

Simple procedure to install Linux operating system on the AWS

Why Linux? Linux is everywhere, all the big MNC's used Linux as a server and a lot more and if you want to survive at the IT world you should be good in Linux. Benefit of using Linux  Highly secure It's free Open source Can be customize Installing Linux on the AWS cloud Any cloud services that provide remote services, let us understand remote service by one example. AWS provides one service called EC2,  which provides RAM and CPU to launch operating system and terminal of this OS can be run on our local machine whether the RAM, CPU and Hard disk are somewhere on the data center of Amazon. Some of the top cloud service providers are -  Amazon (AWS) Microsoft (Azure) Google (GCP) Steps to install Linux instance Create an AWS account, some services are free there for one year and after login go to the 'services' section on the top left and click on EC2 service. Then select 'launch instances'  and start following the procedure explained below. Select the machine ima