{"id":360,"date":"2018-03-07T09:25:14","date_gmt":"2018-03-07T09:25:14","guid":{"rendered":"https:\/\/d1m0.com\/?p=360"},"modified":"2018-03-07T09:25:14","modified_gmt":"2018-03-07T09:25:14","slug":"must-know-linux-commands-newbies-tips-pt1","status":"publish","type":"post","link":"https:\/\/d1m0.com\/?p=360","title":{"rendered":"Must know Linux commands.Newbies tips. pt1"},"content":{"rendered":"<p><strong>Listing files <\/strong>(ls)<\/p>\n<p>If you want to see the list of files on your UNIX or Linux system, use the &#8216;<strong>ls<\/strong>&#8216; command.<br \/>\nIt shows the files \/directories in your current directory.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d1m0.com\/wp-content\/uploads\/ls1.png\" alt=\"null\" \/><\/p>\n<p>Suppose, your &#8220;Music&#8221; folder has following sub-directories and files.<br \/>\nYou can use &#8216;<strong>ls -R<\/strong>&#8216; to shows all the files not only in directories but also subdirectories.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d1m0.com\/wp-content\/uploads\/lsr.png\" alt=\"null\" \/>  <\/p>\n<p>&#8216;<strong>ls -al<\/strong>&#8216; gives detailed information of the files.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d1m0.com\/wp-content\/uploads\/ls-al.png\" alt=\"null\" \/>  <\/p>\n<p> The command provides information in a columnar format. The columns contain the following information: <\/p>\n<p>1st Column \tFile type and access permissions<br \/>\n2nd Column \t# of HardLinks to the File<br \/>\n3rd Column \tOwner and the creator of the file<br \/>\n4th Column \tGroup of the owner<br \/>\n5th Column \tFile size in Bytes<br \/>\n6th Column \tDate and Time<br \/>\n7th Column \tDirectory or File name <\/p>\n<p><strong>Hidden Files<\/strong> &#8211; ls -a<br \/>\nHidden items in Linux begin with . &#8220;period&#8221;<\/p>\n<p><strong>Deleting Files <\/strong><br \/>\nThe &#8216;<strong>rm<\/strong>&#8216; command removes files from the system without confirmation.<br \/>\n<strong><br \/>\nMoving and Re-naming files<\/strong><br \/>\n<strong>mv<\/strong> filename new_file_location\/or new_file_name<\/p>\n<p><strong>Directory Manipulations<\/strong><br \/>\n<strong>mkdir<\/strong> my_directory <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d1m0.com\/wp-content\/uploads\/mkdir.png\" alt=\"null\" \/>  <\/p>\n<p><strong>Renaming Directory<\/strong><br \/>\n The &#8216;<strong>mv<\/strong>&#8216; (move) command  can also be used for renaming directories. Use the below-given format:<br \/>\nmv directoryname newdirectoryname<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/d1m0.com\/wp-content\/uploads\/mvdir.png\" alt=\"null\" \/>  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Listing files (ls) If you want to see the list of files on your UNIX or Linux system, use the &#8216;ls&#8216; command. It shows the files \/directories in your current directory. Suppose, your &#8220;Music&#8221; folder has following sub-directories and files. You can use &#8216;ls -R&#8216; to shows all the files not only in directories but &#8230;<\/p>\n<p><a href=\"https:\/\/d1m0.com\/?p=360\" class=\"more-link\">Continue reading &lsquo;Must know Linux commands.Newbies tips. pt1&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-360","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=360"}],"version-history":[{"count":7,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/360\/revisions"}],"predecessor-version":[{"id":367,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/360\/revisions\/367"}],"wp:attachment":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}