15 Useful Administration Shell Commands Linux

Hello reader,

Whether you are the primary user or just one of many on a Linux machine, there are terminal commands that can bring lots of useful information to you quickly.

Some of the useful ones include:

last last accepts arguments like -f for filename but alone displays the last user logged in which is recorded in var/log/wtemp. Example last -t showing the exact time they were logged in, which might be very helpful on a multiuser system to determine whether or not someone made a system change.

uptime uptime displays the number of logged in users as well as available resources. In a multiseat configuration uptime can tell you quickly whether there enough resources available to run updates or multiple resource heavy programs like virtual machines.

whoami whoami essentially just echoes the logged in user, however if you come back to a terminal and anything looks different it might be wise to run whoami, in case someone else logged in while you stepped away.

crontab -l and crontab -e crontab -l shows the list of automated tasks in the vi editor, crontab -e schedules new tasks. (vi editor familarity is helpful)

cp -p and cp -i copy and preserve

mv -i move and prompt before overwrite

rm removes files, accepts arguments like -r or -f

mkdir makes a directory

pwd print working directory (root/home/user)

ssh open a secure shell. This accepts arguments like -V to show version and accepts addresses such as ssh example@ which would attempt to open shell as username example on this local example  address.

ftp and sftp accepts addresses as above, and can be used with mput or mget for example, ftp (followed by) ftp > mput example.txt or ftp > mget example.txt *note sftp is “secure ftp.”

ifconfig shows all interfaces such as eth0, ifconfig accepts arguments and can be used to turn a service off or on, such as ifconfig eth0 up.

Within ifconfig you can assign everything from subnet masks and ip addresses to broadcast addresses.

iwconfig similar to above but for wireless interfaces.

netstat accepts arguments such as -a -at -s  and shows resulting port traffic.

nslookup not to be mistaken for whois as nslookup queries dns, and whois queries a database of recorded information.




Spread the love

228 thoughts on “15 Useful Administration Shell Commands Linux”

  1. I have been browsing online greater than three hours today, yet I by no means found any fascinating article like yours. It’s pretty price sufficient for me. In my opinion, if all web owners and bloggers made excellent content as you did, the web might be a lot more helpful than ever before. “Revolution is not a onetime event.” by Audre Lorde.


  2. I was examining some of your blog posts on this website and I think this web site is real instructive! Retain putting up.

  3. I really appreciate this post. I’ve been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thx again!

  4. hi!,I like your writing so a lot! proportion we communicate extra approximately your post on AOL? I require an expert in this area to solve my problem. Maybe that’s you! Taking a look ahead to peer you.

  5. Hello there, I discovered your web site by way of Google while looking for a similar subject, your website got here up, it seems to be good. I’ve bookmarked it in my google bookmarks.

  6. Excellent beat ! I wish to apprentice while you amend your website, how could i subscribe for a blog site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear concept

  7. Some really good articles on this website, appreciate it for contribution. “For today and its blessings, I owe the world an attitude of gratitude.” by Clarence E. Hodges.


  8. I really appreciate this post. I’ve been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thx again!


  9. Thank you for sharing superb informations. Your site is very cool. I’m impressed by the details that you¡¦ve on this site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for more articles. You, my pal, ROCK! I found simply the information I already searched everywhere and simply could not come across. What a perfect site.

  10. This is very interesting, You are a very skilled blogger. I have joined your feed and look forward to seeking more of your magnificent post. Also, I have shared your web site in my social networks!

  11. I¡¦ve recently started a blog, the info you provide on this site has helped me tremendously. Thanks for all of your time & work.

  12. Hello There. I found your blog using msn. This is a really well written article. I’ll be sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will definitely return.

  13. Good website! I really love how it is easy on my eyes and the data are well written. I’m wondering how I could be notified when a new post has been made. I have subscribed to your feed which must do the trick! Have a great day!

  14. I am not sure where you are getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for fantastic information I was looking for this info for my mission.

  15. I’ve read a few just right stuff here. Definitely value bookmarking for revisiting. I wonder how much attempt you place to make this type of wonderful informative site.

  16. you’re really a good webmaster. The website loading speed is incredible. It sort of feels that you are doing any distinctive trick. Also, The contents are masterwork. you have performed a great job on this matter!


Leave a Reply

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