linux commands

Subject:

 

Get Free Getting Started with Ubuntu 16.04 eBookSend Me My eBook   

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

 

  •  
  •  
  •  
    •  
    •  
    •  
  •  
  •  
  •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  

51 Useful Lesser Known Commands for Linux Users

by Editor | Published: December 24, 2013 | Last Updated: January 3, 2015

 Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators | 4 Free Shell Scripting eBooks

Linux command line is attractive and fascinating, and there exists a flock of Linux user who are addictive to command Line. Linux command line can be funny and amusing, if you don’t believe me, you can check one of our article below.

  1. 20 Funny Commands of Linux or Linux is Fun in Terminal

 

51 Lesser Known Commands for Linux

As well as extremely powerful, at the same time. We brought to you, five articles on “Lesser Known Linux Commands” consisting of 50+ lesser known Linux command. This article aims at concatenating all those five articles as one, and lets you know, what is where, in brief.

11 Lesser Known Commands – Part I

This article was highly appreciated by our readers, which contains simple yet very important commands. The article summaries as.

  1. 1. sudo!! : Forgot to run a command with sudo? You need not re-write the whole command, just type “sudo!!” and the last command will run with sudo.
  2. 2. Python -m SimpleHTTPServer : Creates a simple web page for the current working directory over port 8000.
  3. 3. mtr : A command which is a combination of ‘ping’ and ‘traceroute’ command.
  4. 4. Ctrl+x+e : This key combination fires up, an editor in the terminal, instantaneously.
  5. 5. nl : Outputs the content of text file with lines Numbered.
  6. 6. shuf : Randomly selects line/file/folder from a file/folder.
  7. 7. ss : Outputs Socket Statistics.
  8. 8. Last: Want to know history of last logged in users? This command comes to rescue here.
  9. 9. curl ifconfig.me : Shows machine’s external IP Address.
  10. 10. tree : Prints files and folders in tree like fashion, recursively.
  11. 11. Pstree : Prints running processes with child processes, recursively.

11 Lesser Known Useful Linux Commands – Part I

The great response, received on this article, and requests to provide another list of ‘Lesser Known Linux Commands‘, from our readers, we wrote next article of the series is:

10 Lesser Known Commands – Part II

This article again was warm welcomed. The summary of the article, below is enough to describe this.

  1. 12. <space> command : A space before a bash command, is not recorded in history.
  2. 13. stat : Shows the status information of a file as well as of a file system.
  3. 14. <alt>. And <esc>. : A tweak which put the last command argument at prompt, in the order of last entered command, appearing first.
  4. 15. Pv : outputs simulating text, similar to hollywood movies.
  5. 16. Mount | column -t : Lists mounted file system, in nice formatting with specification.
  6. 17. Ctrl + l: clear shell prompt, instantaneously.
  7. 18. curl -u gmail_id –silent “https://mail.google.com/mail/feed/atom” | perl -ne ‘print “\t” if //; print “$2\n” if /(.*)/;’. This simple scripts, opens up, unread mail of an user, in the terminal itself.
  8. 19. screen : Detach and Reattach, long running process from a session.
  9. 20. file : Outputs information, regarding types of file.
  10. 21. id : Print User and Group Id.

10 Lesser Known Linux Commands – Part 2

Getting over 600 Likes on different social Networking sites and many thankful comments, we were ready with our third article of the series is:

10 Lesser Known Commands – Part 3

This article summaries as below:

  1. 22. ^foo^bar : Run last command with modification, without the need of rewriting the whole command again.
  2. 23. > file.txt : Flush the content of a text file, in a single go, from the command prompt.
  3. 24. at : Run a particular command, time based.
  4. 25. du -h –max-depth=1 Command : Outputs the size of all the files and folders within current folder, in human readable format.
  5. 26. expr : Solve simple mathematical calculations from the terminal.
  6. 27. look: Check for an English word, from the dictionary, in case of confusion, right from the shell.
  7. 28. yes : continues to print a sting, till interrupt instruction is given.
  8. 29. factor: Gives all the possible factors of a decimal number.
  9. 30. ping -i 60 -a IP_address : Pings the provided IP_address, and gives audible sound when host comes alive.
  10. 31. tac : Prints content of a file, in reverse order.

10 Lesser Known Commands for Linux – Part 3

Our Hard-work was paid by the response we received and fourth article of the series was:

10 Lesser Known Linux Commands – Part IV

Need not say, again this article was appreciated. The article summarises below:

  1. 32. strace : A debugging tool.
  2. 33. disown -a && exit Command : Run a command in background, even after terminal session is closed.
  3. 34. getconf LONG_BIT Command : Output Machine Architecture, very clearly.
  4. 35. while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done & : The script outputs date and time on the top right corner of shell/ terminal.
  5. 36. convert : converts the output of a command in picture, automatically.
  6. 37. watch -t -n1 “date +%T|figlet” : Show animated digital clock at the prompt.
  7. 38. host and dig : DNS lookup utility.
  8. 39. dstat : Generates statistics regarding system resource.
  9. 40. bind -p : Shows all the shortcuts available in Bash.
  10. 41. Touch /forcefsck : Force file-system check on next boot.

10 Lesser Known Effective Linux Commands – Part IV

10 Lesser Known Linux Commands- Part V

The commands from here was getting biased towards scripts, yes single line powerful shell scripts and we thought to provide at least one more article on this series.

  1. 42. lsb_release : Prints distribution specification information.
  2. 43. nc -ZV localhost port_number : Check if a specific port is open or not.
  3. 44. curl ipinfo.io : Outputs Geographical Information, regarding an ip_address.
  4. 45. find .-user xyz : Lists all file owned by user ‘xyz’
  5. 46. apt-get build-dep package_name: Build all the dependency, automatically while installing any specific package.
  6. 47. lsof -iTCP:80 -sTCP:LISTEN. The script, outputs all the service/process using port 80.
  7. 48. find -size +100M : This command combination, Lists all the files/folders the size of which is 100M or more.
  8. 49. pdftk : A nice way to concatenate a lot of pdf files, into one.
  9. 50. ps -LF -u user_name : Outputs Processes and Threads of a user.
  10. 51. Startx — :1 (This command creates another new X session).

10 Lesser Known Useful Linux Commands- Part V

That’s all for now. Don’t forget to give us your valuable feedback in our comment section. This is not an end of lesser known Linux commands, and we will keep them bringing to you, from time to time, in our articles. I’ll be coming with another article, very interesting and useful for our readers. Till then stay tuned and connected to Tecmint.com.

SHARE

+

0

547

87

 

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter |Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate- Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking ouronline Linux courses

We are thankful for your never ending support.

Tags: lesser known commandslinux commands

Receive Your Free Complimentary eBook NOW! - Introduction to Linux - A Hands on Guide

YOU MAY ALSO LIKE...

35 RESPONSES

  1. Shridhar

     July 27, 2016 at 11:55 am

    In the bottom page(footer) , there is a line with blue bar “Preparation for the LFCS (Linux Fundation Certified SysAdmin) Exam ” can see that the word “Fundation ” is miss spelled. this is just suggestion

    Reply

  2. kozaki

     March 21, 2016 at 2:49 am

    Holy nice! some really useful and quite a few I don’t know yet. COol :)

    Note the `python -m SimpleHTTPServer` needs python2.

    Reply

  3. Chib

     March 5, 2016 at 11:03 pm

    found a couple of commands that i’d forgotten about.

    Reply

  4. abhijith

     March 1, 2016 at 11:09 pm

    hello,i am new to linux i am having a problem with some of these commands dont work even if i have entered them right please help

    Reply

    • Ravi Saive

       March 2, 2016 at 10:42 am

      @Abhijit,

      Could you share with us what problem you facing while executing these commands? some of commands needs to installed before executing them, you can install them using yum or apt package manager tool as per your distribution..

      Reply

  5. Paul

     October 18, 2015 at 12:28 am

    I found this very interesting, along with the other lists on this site. Thanks, for putting them together.However, I found several typos including misspelled words. If you are interested I will detail them. Here’s a few.In the first paragraph “Linux user” should be “Linux users”. Down through text commas are used improperly to break up the text.

    Reply

  6. Mohit

     September 22, 2015 at 2:48 pm

    Thank you so much… very useful post

    Reply

  7. George D

     September 22, 2015 at 2:41 pm

    I am getting an error when I run the following:

    Command: curl -u gmail_id –silent “https://mail.google.com/mail/feed/atom” | perl -ne ‘print “\t” if //; print “$2\n” if /(.*)/;’Response: bash: syntax error near unexpected token `(‘

    Running Ubuntu 15.04.

    Any idea what the problem could be?

    Reply

    • Ravi Saive

       September 22, 2015 at 4:13 pm

      Try the following command and don’t forget to add actual email also the quotes needed to be fixed..

      # curl -u ravisaive@gmail.com -silent “https://mail.google.com/mail/feed/atom” | perl -ne 'print "\t" ; print "$2\n" if /(.*)/;'

      curl will need to have SSL enabled.

      Reply

  8. Edraz dequo

     July 7, 2015 at 4:04 pm

    very good

    Reply

  9. Mark

     December 30, 2014 at 7:38 am

    Nice work!

    Reply

  10. Hadi

     October 17, 2014 at 2:39 pm

    HelloIt was useful for me ;Thank you

    Reply

« Older Comments

GOT SOMETHING TO SAY? JOIN THE DISCUSSION.

Comment

Name *

Email *

Website

 Notify me of followup comments via e-mail. You can also subscribe without commenting.

 

I  TecMint :

  •  
  •  
  •  
  •  
  •  

 BEGINNER'S GUIDE FOR LINUX Start learning Linux in minutes 

 Vi/Vim Editor BEGINNER'S GUIDE Learn vi/vim as a Full Text Editor 

Advertise Here

 Linux Foundation Certification  Exam Study Guide to LFCS and LFCE

  •  
  •  

 

Linux System Administrator Bundle with 7-Courses (96% off)

Add to Cart - $69

 Ending In: 3 days

CentOS & Red Hat Certified System Administrator Course (90% off)

Add to Cart - $19

 Ending In: 4 days

DOWNLOAD FREE LINUX EBOOKS

  1. Complete Linux Command Line Cheat Sheet
  2. The GNU/Linux Advanced Administration Guide
  3. Securing & Optimizing Linux Servers
  4. Linux Patch Management: Keeping Linux Up To Date
  5. Introduction to Linux – A Hands on Guide
  6. Understanding the Linux® Virtual Memory Manager
  7. Linux Bible – Packed with Updates and Exercises
  8. A Newbie’s Getting Started Guide to Linux
  9. Linux from Scratch – Create Your Own Linux OS
  10. Linux Shell Scripting Cookbook, Second Edition
  11. Securing & Optimizing Linux: The Hacking Solution
  12. User Mode Linux – Understanding and Administration
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

INSTANT UPDATES FOR NEW POSTS

 

LINUX MONITORING TOOLS

LINUX INTERVIEW QUESTIONS

OPEN SOURCE TOOLS

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Tecmint: Linux Howtos, Tutorials & Guides © 2016. All Rights Reserved.

This work is licensed under a (cc) BY-NC

The material in this site cannot be republished either online or offline, without our permission.

  •  
  •  
  •  
  •  
  •  
2016-09-27 08:20:46gstlouis