Linux Shell Commands - Part 5


In this post I am going to discuss some more useful commands



1. 'which' --> reveals where in the search path a program is located

    root@bt:~/Desktop/Ckorner/post5# which python
    /usr/bin/python
   
root@bt:~/Desktop/Ckorner/post5#
    root@bt:~/Desktop/Ckorner/post5# which msfconsole
    /usr/local/bin/msfconsole
   
root@bt:~/Desktop/Ckorner/post5#

2. 'locate' --> reveals where a directory or file is located

   
root@bt:~/Desktop/Ckorner/post5# locate msfconsole
    /opt/framework3/app/msfconsole
    [some outputs ommited]
    /usr/share/applications/backtrack-framework3-msfconsole.desktop
   
root@bt:~/Desktop/Ckorner/post5#

3. 'whereis' --> reveals all the path to a program

   
root@bt:~/Desktop/Ckorner/post5# whereis python3
    python3: /usr/bin/python3.1 /usr/bin/python3 /etc/python3.1 /usr/lib/python3.1 /usr/lib64/python3.1 /usr/local/lib/python3.1 /usr/include/python3.1 /usr/share/python3 /usr/share/man/man1/python3.1.gz
   
root@bt:~/Desktop/Ckorner/post5#

4. 'find' --> reveals all the files, directories and subdirectories in the given path which accepts wildcard characters

   
root@bt:~/Desktop/Ckorner/post5# find /root/JavaProgs/
    /root/JavaProgs/
    /root/JavaProgs/testDir2
    /root/JavaProgs/dirtraverse.java
    /root/JavaProgs/dirtraverse.java~
    /root/JavaProgs/Hello.class
    /root/JavaProgs/hello.java
    /root/JavaProgs/testDir1
   
root@bt:~/Desktop/Ckorner/post5#
    root@bt:~/Desktop/Ckorner/post5# find /root/JavaProgs/ -name *.java
    /root/JavaProgs/dirtraverse.java
    /root/JavaProgs/hello.java
    /root/JavaProgs/print.java
   
root@bt:~/Desktop/Ckorner/post5#


5. 'history' --> reveals all the commands typed in the shell

   
root@bt:~/Desktop/Ckorner/post5#

     1215  locate perl
     1216  locate msfconsole
     1217  whereis python
     1218  whereis python2.7
     1219  whereis python3
     1220  find /root/JavaProgs/
     1221  history
   
root@bt:~/Desktop/Ckorner/post5#


Thats all for this post, stay tuned for more.


Feel Free To Leave A Comment
If Our Article has Helped You, Support Us By Making A Small Contribution, Thank You!

10 comments:

  1. This paragraph will help the internet users for
    creating new weblog or even a blog from start to end.
    Feel free to visit my page - klicken hier

    ReplyDelete
  2. Why users still make use of to read news papers when
    in this technological world all is accessible on web?
    Here is my blog post :: web design

    ReplyDelete
  3. Hi to all, it's genuinely a good for me to go to see this site, it contains useful Information.
    Feel free to surf my homepage : hier klicken

    ReplyDelete
  4. Wow, this post is pleasant, my younger sister is analyzing these kinds of things, thus I am going to inform her.
    My blog post : hier klicken

    ReplyDelete
  5. That is a really good tip particularly to those fresh to the blogosphere.
    Simple but very precise info… Many thanks for sharing this
    one. A must read article!
    Feel free to visit my weblog - deutschland seo

    ReplyDelete
  6. Thank you for some other magnificent post. Where else could anyone get that type of info in
    such a perfect way of writing? I've a presentation next week, and I am on the search for such info.
    Here is my web page - jetzt Klicken

    ReplyDelete
  7. My brother recommended I would possibly like this blog.

    He used to be entirely right. This put up truly made my day.
    You cann't believe just how a lot time I had spent for this information! Thank you!

    my website - online spiele

    ReplyDelete
  8. Very good article. I certainly appreciate this website.
    Keep it up!

    Have a look at my webpage chistmas casino slots

    ReplyDelete
  9. You aсtuallу mаκe it seem ѕο eаsy with your preѕentatiοn but ӏ find thiѕ
    matter to be actually ѕomеthіng which I think I would
    nеver undeгstanԁ. It sееmѕ too сomρlеx anԁ very broad foг
    me. I'm looking forward for your next post, I'll try to gеt the hang оf it!


    Ηaνe a look аt my page: raspberry ketone

    ReplyDelete
  10. I love what you guys are up too. This type of clever work and coverage!
    Keep up the very good works guys I've included you guys to blogroll.

    Here is my weblog :: book of ra tricks online

    ReplyDelete