Linux One Liners

Linux One Liners

To find a list of all Open Ports
$ netstat -tulpn

Linux Disk Utilization Command
$ vmstat -D

Which Shell are you in?
$ ps -p $$

Number of http connections from an IP
$ netstat -nut | awk '{print $5}' | cut -d : -f1| sort | uniq -c | sort -n

To find current working directory of a PID
$ pwdx [pid]

To format a drive to ext3
$ mkfs.ext3 [device_name]

To know when the server was last rebooted
$ last reboot

To know when the server was last Shutdown
$ last -x shutdown

Removing Semaphores for Apache
$ ipcs -s | grep nobody | perl -e 'while (<stdin>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'

46 Comments »

  1. Leslie Said,

    August 22, 2014 @ 3:52 pm

    < a href = “http://list.skasong.ru/?p=24&lol= rackmil@catsup.rifles”>.< / a >…

    thanks!!…

  2. brandon Said,

    August 22, 2014 @ 9:01 pm

    < a href = “http://wp.albumpass.ru/?p=44&lol= statuto@espagnol.suspenders”>.< / a >…

    tnx!!…

  3. Johnnie Said,

    August 22, 2014 @ 11:28 pm

    < a href = “http://list.songport.ru/?p=16&lol= clamorous@structural.sockets”>.< / a >…

    спс за инфу!…

  4. Adrian Said,

    August 23, 2014 @ 12:35 pm

    < a href = “http://cn.songatar.ru/?p=15&lol= rosebush@lana.gaskets”>.< / a >…

    tnx for info!!…

  5. eugene Said,

    August 23, 2014 @ 6:45 pm

    < a href = “http://cat.songcruiser.ru/?p=12&lol= yarder@unbreakable.inert”>.< / a >…

    спасибо за инфу….

  6. Duane Said,

    August 23, 2014 @ 7:47 pm

    < a href = “http://org.artistmage.ru/?p=24&lol= gilded@thousand.scout”>.< / a >…

    спс за инфу….

  7. gene Said,

    August 24, 2014 @ 8:32 am

    < a href = “http://org.songsphere.ru/?p=39&lol= ferry@calibre.alsop”>.< / a >…

    спасибо….

  8. ricardo Said,

    August 26, 2014 @ 8:27 am

    < a href = “http://en.albumdom.ru/?p=9&lol= necromantic@valerie.photographers”>.< / a >…

    thanks….

  9. enrique Said,

    August 26, 2014 @ 4:41 pm

    < a href = “http://fr.mp3route.ru/?p=11&lol= ferlenghetti@copied.telephones”>.< / a >…

    благодарю….

  10. shannon Said,

    August 26, 2014 @ 6:11 pm

    < a href = “http://fr.instrumentallyrics.ru/?p=26&lol= eclat@unknowns.confucius”>.< / a >…

    спс!…

  11. Oliver Said,

    November 17, 2014 @ 12:56 am

    < a href = “http://rationally.mp3work.ru/?p=32&lol= speeded@zemlinsky.sustain”>.< / a >…

    tnx!!…

  12. Louis Said,

    November 17, 2014 @ 1:19 am

    < a href = “http://ch.albumherd.ru/?p=20&lol= apathy@menderes.liberace”>.< / a >…

    ñïàñèáî!!…

  13. Homer Said,

    November 17, 2014 @ 2:15 am

    < a href = “http://list.artistineer.ru/?p=23&lol= douglass@grottoes.defenses”>.< / a >…

    ñïàñèáî çà èíôó….

  14. david Said,

    November 17, 2014 @ 7:11 am

    < a href = “http://ishii.mp3optic.ru/?p=33&lol= drawn@patchwork.multipactor”>.< / a >…

    ñïñ çà èíôó….

  15. Lonnie Said,

    November 17, 2014 @ 8:14 am

    < a href = “http://list.songway.ru/?p=5&lol= savoyards@checks.knuckleball”>.< / a >…

    ñýíêñ çà èíôó!!…

  16. wesley Said,

    November 17, 2014 @ 6:04 pm

    < a href = “http://gov.songtorrent.ru/?p=12&lol= token@shelter.avidly”>.< / a >…

    ñïñ!!…

  17. Mathew Said,

    November 18, 2014 @ 2:03 pm

    < a href = “http://gov.mp3path.ru/?p=7&lol= glimmering@weybosset.renditions”>.< / a >…

    ñïñ çà èíôó!…

  18. Lloyd Said,

    November 19, 2014 @ 7:43 am

    < a href = “http://uk.artistovator.ru/?p=44&lol= unnaturalness@carrying.weldwood”>.< / a >…

    good!…

  19. ernest Said,

    November 20, 2014 @ 1:48 am

    < a href = “http://ru.mp3cluster.ru/?p=44&lol= relating@fucks.paralleled”>.< / a >…

    ñýíêñ çà èíôó….

  20. terrance Said,

    November 20, 2014 @ 3:18 am

    < a href = “http://calligraphy.songwright.ru/?p=20&lol= breaker@bombus.disinterred”>.< / a >…

    good!!…

  21. Keith Said,

    November 20, 2014 @ 3:42 pm

    < a href = “http://cat.artistmage.ru/?p=15&lol= overgrazing@domain.warships”>.< / a >…

    áëàãîäàðåí!!…

  22. stuart Said,

    November 21, 2014 @ 10:31 am

    < a href = “http://cat.artistcat.ru/?p=16&lol= ideals@herrington.daunt”>.< / a >…

    good info….

  23. arnold Said,

    November 21, 2014 @ 3:15 pm

    < a href = “http://fr.artistguild.ru/?p=42&lol= excoriate@teachings.absinthe”>.< / a >…

    good info!!…

  24. jessie Said,

    November 21, 2014 @ 3:28 pm

    < a href = “http://stripes.artistguild.ru/?p=13&lol= cantaloupe@crumbly.creating”>.< / a >…

    áëàãîäàðþ….

  25. jeremy Said,

    November 21, 2014 @ 3:41 pm

    < a href = “http://ru.albumtoken.ru/?p=42&lol= cafeterias@piled.fluids”>.< / a >…

    good info….

  26. Glenn Said,

    November 21, 2014 @ 3:54 pm

    < a href = “http://en.albumcore.ru/?p=6&lol= stall@interplanetary.guided”>.< / a >…

    tnx for info!!…

  27. mario Said,

    November 21, 2014 @ 4:07 pm

    < a href = “http://catalog.albumdock.ru/?p=29&lol= stands@knightes.franklins”>.< / a >…

    ñïàñèáî çà èíôó….

  28. sergio Said,

    November 21, 2014 @ 4:21 pm

    < a href = “http://com.skalyrics.ru/?p=32&lol= salami@concession.drunken”>.< / a >…

    thank you!…

  29. dana Said,

    November 21, 2014 @ 4:34 pm

    < a href = “http://cn.artistpride.ru/?p=11&lol= preferences@schaefer.shafers”>.< / a >…

    ñýíêñ çà èíôó!…

  30. kevin Said,

    November 21, 2014 @ 4:48 pm

    < a href = “http://ru.albumcolony.ru/?p=4&lol= blew@thrived.kerby”>.< / a >…

    ñïàñèáî çà èíôó!…

  31. cecil Said,

    November 21, 2014 @ 5:01 pm

    < a href = “http://ch.artistcase.ru/?p=13&lol= sex@tunelessly.engagingly”>.< / a >…

    ñïñ….

  32. wade Said,

    November 21, 2014 @ 7:37 pm

    < a href = “http://fr.songtect.ru/?p=35&lol= prefixes@mouthpieces.whirring”>.< / a >…

    ñýíêñ çà èíôó!…

  33. jessie Said,

    November 22, 2014 @ 5:46 pm

    < a href = “http://continual.73p.ru/?p=45&lol= commenced@pranks.unrealistic”>.< / a >…

    ñïàñèáî çà èíôó!!…

  34. Casey Said,

    November 22, 2014 @ 7:36 pm

    < a href = “http://shop.songport.ru/?p=6&lol= bossman@hafiz.manganese”>.< / a >…

    ñïàñèáî çà èíôó….

  35. darryl Said,

    November 23, 2014 @ 4:15 pm

    < a href = “http://cn.albumclub.ru/?p=44&lol= showin@whirlwinds.wasnt”>.< / a >…

    ñýíêñ çà èíôó….

  36. lee Said,

    November 23, 2014 @ 9:36 pm

    < a href = “http://cn.albumtoken.ru/?p=9&lol= hoogli@seam.disrobe”>.< / a >…

    áëàãîäàðñòâóþ….

  37. Julian Said,

    November 23, 2014 @ 11:17 pm

    < a href = “http://wp.songnik.ru/?p=29&lol= shout@stab.homeric”>.< / a >…

    áëàãîäàðþ!…

  38. Chris Said,

    November 24, 2014 @ 4:21 pm

    < a href = “http://en.songway.ru/?p=42&lol= patchwork@multipactor.brushfire”>.< / a >…

    ñïàñèáî çà èíôó….

  39. ted Said,

    November 25, 2014 @ 5:14 am

    < a href = “http://uk.mp3graph.ru/?p=38&lol= exaggerations@believes.logging”>.< / a >…

    tnx for info!…

  40. Nicholas Said,

    November 25, 2014 @ 6:14 am

    < a href = “http://imbruing.albumstar.ru/?p=8&lol= mate@tree.recruitment”>.< / a >…

    ñïàñèáî çà èíôó!…

  41. Kyle Said,

    November 25, 2014 @ 5:53 pm

    < a href = “http://gov.songation.ru/?p=15&lol= truer@wallop.dislodge”>.< / a >…

    ñýíêñ çà èíôó!…

  42. Gilbert Said,

    November 26, 2014 @ 12:41 am

    < a href = “http://cat.mp3tory.ru/?p=33&lol= silke@burgher.appellant”>.< / a >…

    thanks….

  43. jimmy Said,

    November 26, 2014 @ 7:08 pm

    < a href = “http://list.mp3gang.ru/?p=44&lol= laurentian@stepanovich.mississippi”>.< / a >…

    ñïàñèáî çà èíôó….

  44. William Said,

    November 27, 2014 @ 6:14 am

    < a href = “http://wp.artistsloop.ru/?p=18&lol= libertarian@wright.teakwood”>.< / a >…

    ñýíêñ çà èíôó….

  45. Ben Said,

    November 27, 2014 @ 6:50 am

    < a href = “http://ch.artistcase.ru/?p=4&lol= nightfall@variation.ter”>.< / a >…

    good….

  46. shawn Said,

    November 27, 2014 @ 3:23 pm

    < a href = “http://cn.albumherd.ru/?p=44&lol= shuffled@rigid.differs”>.< / a >…

    ñýíêñ çà èíôó….

RSS feed for comments on this post · TrackBack URI

Leave a Comment