Screenshot 2022 07 05 At 7.36.49 Pm

BASICS LINUX COMMAND FOR ABSOLUTE BEGINNERS [PART-2]

Advertisement

In this series we will learn about various linux command as this goes on we will get into intermediate and advance linux commands 

So in PART-1 of basic linux command we see command linux command. In this post, we will continue to learn some other basic commands of linux in this post.

Check out the PART-1 OF BASIC LINUX COMMAND FOR ABSOLUTE BEGINNERS

WHAT IS LINUX ?

    Linux is a open source operating system that runs linux kernel there are lot of distribution of linux, linux is highly customizable os unlike windows for macos they are very restricted compare to the linux os,os linux can run on wide variety of hardware from smartwatch to supercomputer and they are well know for it stability and reliability 

to learn little bit more about linux click here

this article will show additional and useful basic linux commands

1.locate

    You can use this command to find a file, just like the windows search in Windows.in addition to that, using the -i argument along with this command will make it case-insensitive, so you can search for a file even if you don’t know its exact name.

To search for a file that having more than two words, use an asterisk *. For ex, locate -i scnotes* note command will search for any file that contains the word “scnote” and “scnote”, even if it is in uppercase or lowercase.

2.find

    It is similar to the locate command, using find it also  searches for files and directories. The difference between locate and find commands is that, you use the find command to find the files within a specific directory.

See also  BEGINNERS GUIDE FOR JAILBREAKING

As an example, find /home/ -name scnotes.txt command will search for a file called scnotes.txt within the home directory and its subdirectories.

3.grep

This is another basic Linux command that is very helpful for everyday use .It lets you search through all the text in a given file.

For example if you type “grep pink colors.txt” it will search for the word pink in the colors file. Lines that contain the word will be shown fully.

4.df

    df command is used to get a report on the system’s disk space usage, shown in percentage and KBs. If you want to see the disk space usage report in megabytes, type df -m.

5.du

    If you want to check the size of a file or a directory, the du (Disk Usage) command is used for that purpose.However, the disk usage summary will show disk- block numbers instead of the usual size format. If you want it to show it in bytes, kilobytes, and megabytes, add the -h argument to the command.

6.tar

    The tar command is one of the most used commands to archive multiple files into a tarball file ,a common Linux file format that is like zip format in other operating systems, with compression being optional.

This command has a long list of functions such as adding new files into an existing tarball file, listing the total  content of an archive, extracting the content from a file, and many more.

7.chmod

    chmod is another Linux command, used to change the write,read and execute permissions of files and directories.

See also  HOW TO CREATE A BOOTABLE PENDRIVE

8.ping

    Ping command is used to check the connecting status of the server that is still alive and does it give response back or not

9.history

     History command is used to show the previously typed command in the terminal 

10.echo

    This command is used to copy some data into a file. For eg, if you want to add the text, “hello world” into a file called nameless.txt, you would type echo hello world >> nameless.txt

Advertisement

No Responses

  1. y89ue Fvzoar October 5, 2024
    Your comment is awaiting moderation.

Leave a Reply