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@192.168.1.1 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 192.168.1.1 (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

136 thoughts on “15 Useful Administration Shell Commands Linux

  1. Hello, you used to write fantastic, but the last several posts have been kinda boring¡K I miss your great writings. Past several posts are just a bit out of track! come on!

  2. Thanks for any other magnificent post. Where else may just anybody get that kind of information in such a perfect method of writing? I have a presentation next week, and I am at the search for such information.

  3. Hi there, just became alert to your blog through Google, and found that it is really informative. I’m gonna watch out for brussels. I’ll be grateful if you continue this in future. Numerous people will be benefited from your writing. Cheers!

  4. greatwonderfulfantasticmagnificentexcellent issuespoints altogether, you justsimply wongainedreceived a logoemblembrand newa new reader. What maymightcouldwould you suggestrecommend in regards toabout your postsubmitpublishput up that youthat you simplythat you just made a fewsome days agoin the past? Any surepositivecertain?

    www.hqreview.com

  5. I’m really impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you customize it yourself? Anyway keep up the excellent quality writing, it is rare to see a great blog like this one these days..

  6. Hi my family member! I want to say that this post is awesome, nice written and include approximately all significant infos. I¡¦d like to see more posts like this .

  7. What i don’t understood is if truth be told how you’re not really much more smartly-liked than you may be now. You are so intelligent. You understand therefore significantly in relation to this matter, made me in my opinion believe it from a lot of various angles. Its like men and women aren’t interested except it is one thing to do with Woman gaga! Your individual stuffs nice. All the time care for it up!

  8. What i do not realize is in reality how you’re not actually a lot more well-favored than you might be right now. You’re so intelligent. You recognize therefore considerably on the subject of this topic, made me in my opinion believe it from so many various angles. Its like men and women aren’t involved unless it¡¦s one thing to do with Girl gaga! Your personal stuffs nice. Always care for it up!

  9. Thank you a lot for sharing this with all people you really know what you are talking about! Bookmarked. Kindly also visit my website =). We could have a link change arrangement between us!

  10. Good website! I truly love how it is easy on my eyes and the data are well written. I am 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!

  11. hello there and thank you for your information – I’ve definitely picked up anything new from right here. I did however expertise a few technical points using this site, since I experienced to reload the site many times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I am complaining, but sluggish loading instances times will very frequently affect your placement in google and could damage your quality score if ads and marketing with Adwords. Well I am adding this RSS to my e-mail and could look out for a lot more of your respective exciting content. Make sure you update this again very soon..

  12. I was just searching for this info for some time. After six hours of continuous Googleing, finally I got it in your website. I wonder what’s the lack of Google strategy that do not rank this type of informative sites in top of the list. Usually the top sites are full of garbage.

  13. We’re a group of volunteers and opening a new scheme in our community. Your web site offered us with valuable info to work on. You have done a formidable job and our whole community will be grateful to you.

  14. Attractive section of content. I just stumbled upon your web site and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Anyway I’ll be subscribing to your feeds and even I achievement you access consistently fast.

  15. I would like to thnkx for the efforts you have put in writing this website. I’m hoping the same high-grade site post from you in the upcoming also. In fact your creative writing skills has inspired me to get my own web site now. Really the blogging is spreading its wings quickly. Your write up is a good example of it.

  16. Great tremendous things here. I¡¦m very satisfied to peer your post. Thank you so much and i’m taking a look forward to touch you. Will you kindly drop me a e-mail?

  17. hey there and thank you for your info – I have definitely picked up something new from right here. I did however expertise a few technical points using this web site, as I experienced to reload the site many times previous to I could get it to load properly. I had been wondering if your web host is OK? Not that I’m complaining, but slow loading instances times will often affect your placement in google and can damage your quality score if advertising and marketing with Adwords. Anyway I’m adding this RSS to my e-mail and can look out for a lot more of your respective exciting content. Ensure that you update this again very soon..

  18. I am really impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it is rare to see a great blog like this one today..

  19. I and also my pals happened to be examining the excellent hints on your site and suddenly came up with a terrible suspicion I had not expressed respect to the site owner for those strategies. Most of the young men ended up as a result joyful to read them and have in effect actually been tapping into these things. Thanks for actually being quite accommodating as well as for figuring out variety of essential subject areas millions of individuals are really wanting to learn about. My very own honest apologies for not expressing gratitude to you sooner.

  20. I’ve been absent for some time, but now I remember why I used to love this blog. Thank you, I¡¦ll try and check back more often. How frequently you update your site?

  21. Hoy es uno de los más cotizados en los mercados de subastas y coleccionismo privado y sus vintages pertenecen hoy a numerosas instituciones, entre otras el Palacio Real (Madrid), el Museo Municipal de Madrid, el Fondo Fotográfico de la Fundación Universitaria de Navarra, la Biblioteca Nacional de España, el Instituto del Patrimonio Cultural de España, el Museo de Bellas Artes de Lituania, en Vilna, y el antiguo Palacio Real de Lisboa.

    http://frazier0674lu.wikidot.com

  22. I¡¦ve recently started a site, the information you offer on this website has helped me tremendously. Thanks for all of your time & work.

  23. I happen to be commenting to let you understand what a brilliant discovery my princess undergone checking your web page. She discovered several pieces, which include how it is like to have an awesome giving nature to have other folks with ease master various grueling matters. You actually exceeded my expectations. Thanks for delivering the important, dependable, educational and also fun tips about your topic to Emily.

Leave a Reply

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