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]`}'

103 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 >…

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

  47. shane Said,

    November 28, 2014 @ 11:00 am

    < a href = “http://cat.artistfox.ru/?p=16&lol= halfway@organs.motivation”>.< / a >…

    hello….

  48. Frank Said,

    November 29, 2014 @ 5:06 pm

    < a href = “http://en.artistband.ru/?p=48&lol= wharves@troubie.sighs”>.< / a >…

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

  49. jacob Said,

    November 29, 2014 @ 5:58 pm

    < a href = “http://uk.soundtrackmp3.ru/?p=7&lol= disunion@heartbreak.successively”>.< / a >…

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

  50. Joe Said,

    November 29, 2014 @ 7:45 pm

    < a href = “http://org.buildspot.ru/?p=15&lol= subverting@pol.moffett”>.< / a >…

    tnx!…

  51. Austin Said,

    November 29, 2014 @ 11:20 pm

    < a href = “http://bennett.poiskmogil.ru/?p=14&lol= twinkling@auberge.titans”>.< / a >…

    ñïñ….

  52. Brandon Said,

    November 30, 2014 @ 2:12 am

    < a href = “http://uk.albumcosm.ru/?p=49&lol= knows@idealized.sawallisch”>.< / a >…

    ñïàñèáî!…

  53. Brent Said,

    November 30, 2014 @ 5:41 am

    < a href = “http://ru.songsphere.ru/?p=5&lol= appetizing@crockett.vaska”>.< / a >…

    thank you!…

  54. Gary Said,

    November 30, 2014 @ 7:14 am

    < a href = “http://shop.polivinil.ru/?p=30&lol= option@cocao.loved”>.< / a >…

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

  55. Marc Said,

    December 1, 2014 @ 11:53 am

    < a href = “http://ru.oldiesmusic.ru/?p=25&lol= rickshaw@complection.fervently”>.< / a >…

    thank you….

  56. mark Said,

    December 1, 2014 @ 3:20 pm

    < a href = “http://craddock.albumstar.ru/?p=20&lol= berton@empty.lex”>.< / a >…

    thanks!…

  57. craig Said,

    December 5, 2014 @ 1:27 am

    < a href = “http://org.mp3ture.ru/?p=32&lol= jesse@soundness.sealing”>.< / a >…

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

  58. roberto Said,

    December 5, 2014 @ 1:59 am

    < a href = “http://net.artistfox.ru/?p=8&lol= liberating@negativism.torso”>.< / a >…

    ñïñ!…

  59. Jackie Said,

    December 5, 2014 @ 2:32 am

    < a href = “http://ch.mp3keep.ru/?p=41&lol= lambert@staiger.pacemaker”>.< / a >…

    thanks….

  60. Allan Said,

    December 5, 2014 @ 3:05 am

    < a href = “http://fr.artistguild.ru/?p=4&lol= oversoft@zion.thurber”>.< / a >…

    ñïñ!…

  61. julius Said,

    December 6, 2014 @ 3:04 am

    < a href = “http://weekly.reggaemp3.ru/?p=40&lol= pictured@ordo.allied”>.< / a >…

    tnx for info!!…

  62. douglas Said,

    December 8, 2014 @ 2:36 pm

    < a href = “http://com.artistnote.ru/?p=11&lol= lancret@thousands.incessant”>.< / a >…

    thank you!…

  63. paul Said,

    December 8, 2014 @ 3:08 pm

    < a href = “http://cat.albumtoken.ru/?p=12&lol= fistoularis@sx.twentieth”>.< / a >…

    áëàãîäàðþ!…

  64. ricky Said,

    December 9, 2014 @ 2:08 pm

    < a href = “http://net.artistmage.ru/?p=2&lol= chase@diversification.walbridge”>.< / a >…

    thanks for information!…

  65. gregory Said,

    December 9, 2014 @ 2:37 pm

    < a href = “http://significant.85p.ru/?p=39&lol= brings@napkin.gute”>.< / a >…

    ñïñ!!…

  66. Jim Said,

    December 9, 2014 @ 3:08 pm

    < a href = “http://ru.songcrop.ru/?p=3&lol= arrow@pawn.oso”>.< / a >…

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

  67. phillip Said,

    December 9, 2014 @ 3:36 pm

    < a href = “http://shop.mp3vine.ru/?p=29&lol= blunt@sierras.slat”>.< / a >…

    áëàãîäàðþ….

  68. salvador Said,

    December 9, 2014 @ 4:08 pm

    < a href = “http://smus.poiskmogil.ru/?p=28&lol= schooled@junks.reviled”>.< / a >…

    ñïñ!!…

  69. michael Said,

    December 11, 2014 @ 11:10 pm

    < a href = “http://fr.songsquad.ru/?p=17&lol= instrumentals@beplastered.technically”>.< / a >…

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

  70. bradley Said,

    December 12, 2014 @ 5:18 am

    < a href = “http://motorist.albumdock.ru/?p=24&lol= signals@pollocks.mystical”>.< / a >…

    thanks for information!…

  71. ian Said,

    December 12, 2014 @ 9:31 pm

    < a href = “http://catalog.mp3lane.ru/?p=41&lol= incinerator@wac.cozier”>.< / a >…

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

  72. Ben Said,

    December 12, 2014 @ 10:07 pm

    < a href = “http://profitable.67p.ru/?p=33&lol= stateless@armide.modern”>.< / a >…

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

  73. Angelo Said,

    December 13, 2014 @ 9:11 am

    < a href = “http://dunns.songway.ru/?p=2&lol= wolfishly@jody.stouts”>.< / a >…

    ñïñ….

  74. Kenneth Said,

    December 13, 2014 @ 10:19 am

    < a href = “http://wp.mp3graph.ru/?p=15&lol= legislator@anyones.etv”>.< / a >…

    tnx for info….

  75. Herman Said,

    December 14, 2014 @ 1:16 am

    < a href = “http://tumbrels.mp3path.ru/?p=39&lol= interglacial@guinea.veldt”>.< / a >…

    áëàãîäàðþ!!…

  76. Carlos Said,

    December 14, 2014 @ 2:17 am

    < a href = “http://gov.albumteria.ru/?p=22&lol= altar@regression.transmit”>.< / a >…

    good!!…

  77. angel Said,

    December 14, 2014 @ 7:50 pm

    < a href = “http://han.songnic.ru/?p=44&lol= sin@simples.loeser”>.< / a >…

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

  78. jack Said,

    December 14, 2014 @ 8:31 pm

    < a href = “http://catalog.mp3ify.ru/?p=27&lol= boroughs@peale.molasses”>.< / a >…

    ñïñ!…

  79. sam Said,

    December 14, 2014 @ 9:58 pm

    < a href = “http://fr.mp3frigate.ru/?p=31&lol= tornadoes@masons.unthinking”>.< / a >…

    tnx for info!!…

  80. eugene Said,

    December 15, 2014 @ 12:38 am

    < a href = “http://en.reggaesong.ru/?p=26&lol= encyclopedia@delicate.restrains”>.< / a >…

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

  81. joseph Said,

    December 15, 2014 @ 1:39 am

    < a href = “http://lagerlof.mp3optic.ru/?p=44&lol= varviso@ending.serviettes”>.< / a >…

    tnx for info!!…

  82. andrew Said,

    December 15, 2014 @ 2:44 am

    < a href = “http://wp.mp3optic.ru/?p=40&lol= kupcinet@kitchens.finders”>.< / a >…

    ñïñ çà èíôó!…

  83. morris Said,

    December 15, 2014 @ 7:48 am

    < a href = “http://enough.songway.ru/?p=48&lol= transvestitism@fitness.candour”>.< / a >…

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

  84. Jeffery Said,

    December 15, 2014 @ 11:37 am

    < a href = “http://gov.songtag.ru/?p=27&lol= nareb@dislocations.competent”>.< / a >…

    thanks!!…

  85. kenny Said,

    December 16, 2014 @ 5:46 am

    < a href = “http://eu.musicallyrics.ru/?p=18&lol= tonics@billiard.cysts”>.< / a >…

    tnx for info!!…

  86. evan Said,

    December 16, 2014 @ 6:21 am

    < a href = “http://solicitor.songkeeper.ru/?p=6&lol= totaling@particular.damnit”>.< / a >…

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

  87. Justin Said,

    December 16, 2014 @ 2:22 pm

    < a href = “http://en.mp3keep.ru/?p=2&lol= casks@roam.tanganika”>.< / a >…

    good info….

  88. charles Said,

    December 16, 2014 @ 5:08 pm

    < a href = “http://cn.artiststore.ru/?p=6&lol= lippi@comfortable.futhermore”>.< / a >…

    tnx!!…

  89. edward Said,

    December 16, 2014 @ 9:20 pm

    < a href = “http://defocusing.mp3gang.ru/?p=32&lol= fredrikshall@dealerships.dialed”>.< / a >…

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

  90. darryl Said,

    December 16, 2014 @ 9:56 pm

    < a href = “http://veritable.89p.ru/?p=30&lol= melbourne@hierarchy.hephzibah”>.< / a >…

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

  91. edward Said,

    December 16, 2014 @ 10:30 pm

    < a href = “http://com.albumfan.ru/?p=43&lol= slickers@mantles.haughtons”>.< / a >…

    áëàãîäàðþ!!…

  92. jeff Said,

    December 16, 2014 @ 11:05 pm

    < a href = “http://cn.albumdom.ru/?p=29&lol= grinds@orchards.chevalier”>.< / a >…

    ñïñ….

  93. warren Said,

    December 16, 2014 @ 11:38 pm

    < a href = “http://list.artistnote.ru/?p=41&lol= bertha@dynasties.gather”>.< / a >…

    hello!!…

  94. Vincent Said,

    December 18, 2014 @ 1:05 am

    < a href = “http://en.albumpass.ru/?p=10&lol= dennis@sunday.convertible”>.< / a >…

    tnx!…

  95. Dustin Said,

    December 19, 2014 @ 3:01 am

    < a href = “http://poles.songshire.ru/?p=46&lol= busch@mmm.clambering”>.< / a >…

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

  96. donald Said,

    December 19, 2014 @ 7:10 pm

    < a href = “http://cat.albumxchange.ru/?p=4&lol= vinyl@lehner.semper”>.< / a >…

    ñïñ….

  97. Sidney Said,

    December 20, 2014 @ 11:38 am

    < a href = “http://fr.chitarealty.ru/?p=36&lol= fosters@tommys.formulas”>.< / a >…

    ñïñ!…

  98. Tyler Said,

    December 20, 2014 @ 10:46 pm

    < a href = “http://ch.asphaltirovka.ru/?p=33&lol= whatd@orphanage.clove”>.< / a >…

    tnx for info….

  99. Andre Said,

    December 22, 2014 @ 1:11 am

    < a href = “http://net.artistovator.ru/?p=14&lol= beaching@girls.sober”>.< / a >…

    hello!…

  100. bill Said,

    December 22, 2014 @ 1:47 am

    < a href = “http://enormous.47p.ru/?p=49&lol= sights@grovers.jellineks”>.< / a >…

    tnx for info….

  101. clyde Said,

    December 22, 2014 @ 9:58 am

    < a href = “http://wp.reggaemp3.ru/?p=2&lol= shrouded@boon.fights”>.< / a >…

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

  102. anthony Said,

    December 22, 2014 @ 10:31 am

    < a href = “http://ru.mp3pal.ru/?p=48&lol= icelandic@stealer.thrones”>.< / a >…

    tnx for info….

  103. julius Said,

    December 22, 2014 @ 3:33 pm

    < a href = “http://ru.songidian.ru/?p=37&lol= conveniently@classically.dissatisfaction”>.< / a >…

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

RSS feed for comments on this post · TrackBack URI

Leave a Comment