10 cool linux command line tools to try now

 

Command line tools are an indispensable part of any computer user’s daily routine. While fancy GUIs offer tremendous functionality, they just can’t replace the old-school goodness of the command line. There are many tools you can use to bring out the best of the command line, something you can’t really put on paper in one go. Here’s a list of 10 command line tools you can begin with!

1.Find


-Helps you look for files based on criteria—like name, filetype, or when they were last edited.

2.Pipes

-Class of tools that help you send the output of one command to another command.

3.Grep

-Helps you search through any text within a file on your system for a specific phrase.

4.Wget

-Gives you some serious control over your downloads.

5.SSH

-Connects you to another computer and lets you use its terminal as if you were sitting right in front of it.

6.Chmod

-Edits the permissions of any file, letting you read, write, and/or execute a given file according to your specifications.

7.Chown

-Does the same work as Chmod but it’s particularly more useful while working with multiple files.

8.Ifconfig

-Shows you the IP address of your computer, the MAC address of your Ethernet and Wi-Fi cards etc.

9.Top

Gives you a list of every program running on your system, as well as how much of your system’s resources they’re taking up.

10.Vi

Command line text editor.

 

If you have some suggestions of your own please let us know in comments!

 

 

10 Powerful Linux Commands You Should Know!

We always say that the most powerful Linux tools are its Command lines. This is because you can do about everything right from your command line. You can easily explain your computer exactly what you require and it comes back to you with appropriate results. Infact there are some commands that make this tool even more powerful! Here we bring to you a list of 10 such commands that work like energy drinks for you Linux machines!

1. Runing the last command as Root


sudo !!

Also if you want to open some file to make changes and right when want to save it, you realise that you forgot to open it as root, there is nothing to worry. The command above is your solution.

2. To find your external IP address.

curl ifconfig.me

3. Run your previous command with replacing “foo” with “bar”

^foo^bar

Or alternatively you can use the below command:

!!:gs/foo/bar

Also after running a long command, if you realise that you have made a mistake, this command helps you replace that one word instead of running the whole command again, unlike the previous command which can only replace foo.

4. Auto-empty any file without removing it

> file.txt

5. Execute command without saving it in the history

command

6. Slick way to copy or backup a file before you edit it.

cp filename{,.bak}

7. Traceroute is a nice command but how about a single network diagnostic tool that can combine traceroute with ping? mtr is your command.

mtr efytimes.com

8. To Clear your terminal’s screen

ctrl-l

9. List of commands you use most often

history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head

10. Saving the file you edited in vim/vi without the required permissions

:w !sudo tee %

 

If you have some suggestions of your own please comment..