{"id":29,"date":"2006-07-14T15:44:00","date_gmt":"2006-07-14T14:44:00","guid":{"rendered":"https:\/\/iddlesblog.wordpress.com\/2006\/07\/14\/useful-unix-tools\/"},"modified":"2006-07-14T15:44:00","modified_gmt":"2006-07-14T14:44:00","slug":"useful-unix-tools","status":"publish","type":"post","link":"https:\/\/iddles.co.uk\/index.php\/2006\/07\/14\/useful-unix-tools\/","title":{"rendered":"Useful Unix Tools"},"content":{"rendered":"<p>I can never remember any of these commands.\u00a0 I know that you flip flop waring, bearded, leather patch wallahs can but heres a list they is very useful.<br \/>\n<strong>vmstat n<\/strong> &#8211; To show Virtual Machine, Disk I\/O, Swap etc use.\u00a0 The n makes it refresh every n seconds<br \/>\n<strong>\/etc\/sysconfig\/network-scripts\/ifcfg-eth1 &#8211; Use to set static interface on most Linux&#8217;s<\/strong><br \/>\nContents something like:<br \/>\n<span style=\"font-family:Courier New;\"># Description of type<br \/>\nDEVICE=eth1<br \/>\nBOOTPROTO=static<br \/>\nIPADDR=x.x.x.x<br \/>\nNETMASK=x.x.x.x<br \/>\nONBOOT=yes<br \/>\nTYPE=Ethernet<\/span><\/p>\n<p class=\"big\"><strong>Remember to use \/etc\/sysconfig\/network for your default gateway<\/strong><\/p>\n<blockquote>\n<p class=\"normal\">NETWORKING=yes<br \/>\nHOSTNAME=&#8221;hostname.linux.org&#8221;<br \/>\nGATEWAY=&#8221;10.164.234.1&#8243;<br \/>\nGATEWAYDEV=&#8221;eth0&#8243;<br \/>\nFORWARD_IPV4=&#8221;yes&#8221;<\/p>\n<\/blockquote>\n<p><strong>TAR<\/strong> &#8211; Use extracting\/imploding files to one file &#8211; does not compress<br \/>\n<strong>tar cvf nameoftarfile.tar -I textfile.txt<\/strong> &#8211; takes the contents of the text file and adds to tar<br \/>\n<strong>tar xcvf nameoftarfile.tar <\/strong>&#8211; extract and verify<br \/>\n<strong>Solaris and 802.1q tagged interfaces<\/strong><br \/>\nInterfaces are usually called hostname.ceVLANID000<br \/>\n<strong>Adding Interfaces to Solaris<\/strong> &#8211; making sure they work on boot<br \/>\nvi \/etc\/netmasks &#8211; add the subnet to this<br \/>\nvi \/etc\/hosts &#8211; add the interface and VLAN<br \/>\ncreate a hostname.ceVLANID000 file<br \/>\nmanually plumb:<br \/>\n\u00a0 plumb eth1 (bring up L1)<br \/>\n\u00a0 ifconfig add inet x.x.x.x netmask x.x.x.x broadcast x.x.x.x<br \/>\n\u00a0 ifconfig eth1 up<br \/>\nIll keep adding as I think of them<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/iddles.co.uk\/aggbug.aspx?PostID=2200\" alt=\"\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I can never remember any of these commands.\u00a0 I know that you flip flop waring, bearded, leather patch wallahs can but heres a list they is very useful. vmstat n &#8211; To show Virtual Machine, Disk I\/O, Swap etc use.\u00a0 The n makes it refresh every n seconds \/etc\/sysconfig\/network-scripts\/ifcfg-eth1 &#8211; Use to set static interface [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[4],"tags":[54],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-linux-nix","tag-useful-commands","post-preview"],"_links":{"self":[{"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":0,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}