{"id":141,"date":"2024-10-08T20:26:45","date_gmt":"2024-10-08T20:26:45","guid":{"rendered":"https:\/\/gratisvps.net\/blog\/?p=141"},"modified":"2024-10-08T20:44:35","modified_gmt":"2024-10-08T20:44:35","slug":"linux-command-line-basics","status":"publish","type":"post","link":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/","title":{"rendered":"Linux Command Line Basics"},"content":{"rendered":"<h1>Introduction to Linux Command Line: The Gateway to Power Computing<\/h1>\n<p>Powerful command-line Linux amplifies your productivity and gives you much deeper control over your system. A fast way to get you up and running with the following quick guide:.<\/p>\n<p><strong>1. Moving Around in the Filesystem<\/strong><\/p>\n<hr \/>\n<p><strong>pwd<\/strong>: Print Working Directory. Prints out your current directory.<br \/>\n<strong>ls<\/strong>: List all the files and directories. For detailed information, ls -l<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>2. Directory Manipulation<\/strong><\/p>\n<hr \/>\n<p><strong>cd<\/strong>: Change Directory. Change into a different folder.<br \/>\ncd \/path\/to\/directory<\/p>\n<p><strong>mkdir<\/strong>: To create a new folder\/directory:.<br \/>\nmkdir new_folder<br \/>\nmdlmdl<br \/>\nrmdir: Removes an empty directory.<br \/>\nrmdir empty_folder<\/p>\n<hr \/>\n<p><strong>3. File Operation<\/strong><\/p>\n<hr \/>\n<p><strong>touch<\/strong>: Creates a new and empty file.<br \/>\ntouch newfile.txt<\/p>\n<p><strong>cp<\/strong>: Copies a file or directory.<\/p>\n<p>source.txt destination.txt<\/p>\n<p><strong>mv<\/strong>: Moves or renames the file.<\/p>\n<p>mv oldname.txt newname.txt<br \/>\n_debugger<br \/>\nrm Hapus file.<br \/>\nrm file_to_delete.txt<br \/>\nTaken<\/p>\n<hr \/>\n<p><strong>4. File Contents View<\/strong><\/p>\n<hr \/>\n<p><strong>cat<\/strong>: To concatenate and print file content.<br \/>\nbash<br \/>\ncat file.txt<\/p>\n<p><strong>less<\/strong>: View file content with scrolling capabilities.<\/p>\n<p>less file.txt<\/p>\n<p>head and `tail`: get the top or bottom rows of a file.<br \/>\nng for files<br \/>\nfind: Search for files in a directory hierarchy.<\/p>\n<p>find \/path\/to\/search -name &#8220;filename.txt&#8221;<br \/>\nMISC<br \/>\n<strong>grep<\/strong>: Search for text patterns in files.<br \/>\ngrep &#8220;search_term&#8221; file.txt<\/p>\n<hr \/>\n<p><strong>5. Permissions<\/strong><\/p>\n<hr \/>\n<p><strong>chmod<\/strong>: Changes the permissions of files.<\/p>\n<p>chmod 755 script.sh<\/p>\n<p>chown: change file ownership.<br \/>\nbash<br \/>\nchown user:group file.txt<\/p>\n<p><strong>6. Process Management<\/strong><\/p>\n<p><strong>ps<\/strong>: Lists running processes.<br \/>\nps aux<\/p>\n<p><strong>kill<\/strong>: Kills running processes.<\/p>\n<p>kill PID_NUMBER<\/p>\n<hr \/>\n<p><strong>7. Network Fundamentals\u00a0<\/strong><\/p>\n<p><strong>ping<\/strong>: Ping connectivity to a server. bash ping example.com High: &#8211; `ifconfig` or `ip a` Shows the network configuration. ifconfig None Conclusion Mastery of these things&#8211;the basic manipulations via command lines&#8211;opens up great vistas of possibility in Linux. Now try each of these commands to see how they simplify your work!<\/p>\n<p>This blog post lets the beginning administrator pick up a few of the necessary commands which will let them navigate and perform some kinds of maintenance on their Linux systems. Anything else to add?<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/fFSVtN_y_U8?si=XT0EAXLuNP1Le4DC\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to Linux Command Line: The Gateway to Power Computing Powerful command-line Linux amplifies your productivity and gives you much deeper control over your system. A fast way to get you up and running with the following quick guide:. 1. Moving Around in the Filesystem pwd: Print Working Directory. Prints&hellip;<\/p>\n","protected":false},"author":1,"featured_media":146,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[41],"class_list":["post-141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-commands"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.6 (Yoast SEO v23.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux Command Line Basics - Gratisvps.net | Blog Daily Tech Info<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Command Line Basics\" \/>\n<meta property=\"og:description\" content=\"Introduction to Linux Command Line: The Gateway to Power Computing Powerful command-line Linux amplifies your productivity and gives you much deeper control over your system. A fast way to get you up and running with the following quick guide:. 1. Moving Around in the Filesystem pwd: Print Working Directory. Prints&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"Gratisvps.net | Blog Daily Tech Info\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-08T20:26:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-08T20:44:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"678\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"ariete\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ariete\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/\"},\"author\":{\"name\":\"ariete\",\"@id\":\"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/cddcf8cb5192d0713c19b79425c77fc4\"},\"headline\":\"Linux Command Line Basics\",\"datePublished\":\"2024-10-08T20:26:45+00:00\",\"dateModified\":\"2024-10-08T20:44:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/\"},\"wordCount\":336,\"publisher\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg\",\"keywords\":[\"linux commands\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/\",\"url\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/\",\"name\":\"Linux Command Line Basics - Gratisvps.net | Blog Daily Tech Info\",\"isPartOf\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg\",\"datePublished\":\"2024-10-08T20:26:45+00:00\",\"dateModified\":\"2024-10-08T20:44:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#primaryimage\",\"url\":\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg\",\"contentUrl\":\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg\",\"width\":1200,\"height\":678,\"caption\":\"Basic-Linux-Commands\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/gratisvps.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux Command Line Basics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/gratisvps.net\/blog\/#website\",\"url\":\"https:\/\/gratisvps.net\/blog\/\",\"name\":\"Gratisvps.net | Blog Daily Tech Info\",\"description\":\"Discover reliable VPS server solutions\",\"publisher\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/gratisvps.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/gratisvps.net\/blog\/#organization\",\"name\":\"Gratisvps.net | Blog Daily Tech Info\",\"url\":\"https:\/\/gratisvps.net\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/gratisvps.net\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/logo.png\",\"contentUrl\":\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/logo.png\",\"width\":250,\"height\":67,\"caption\":\"Gratisvps.net | Blog Daily Tech Info\"},\"image\":{\"@id\":\"https:\/\/gratisvps.net\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/cddcf8cb5192d0713c19b79425c77fc4\",\"name\":\"ariete\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ca385b636b0c0fe0e98479594ff50902?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ca385b636b0c0fe0e98479594ff50902?s=96&d=mm&r=g\",\"caption\":\"ariete\"},\"sameAs\":[\"https:\/\/gratisvps.net\/blog\"],\"url\":\"https:\/\/gratisvps.net\/blog\/author\/ariete\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Linux Command Line Basics - Gratisvps.net | Blog Daily Tech Info","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/","og_locale":"en_US","og_type":"article","og_title":"Linux Command Line Basics","og_description":"Introduction to Linux Command Line: The Gateway to Power Computing Powerful command-line Linux amplifies your productivity and gives you much deeper control over your system. A fast way to get you up and running with the following quick guide:. 1. Moving Around in the Filesystem pwd: Print Working Directory. Prints&hellip;","og_url":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/","og_site_name":"Gratisvps.net | Blog Daily Tech Info","article_published_time":"2024-10-08T20:26:45+00:00","article_modified_time":"2024-10-08T20:44:35+00:00","og_image":[{"width":1200,"height":678,"url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg","type":"image\/jpeg"}],"author":"ariete","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ariete","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#article","isPartOf":{"@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/"},"author":{"name":"ariete","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/cddcf8cb5192d0713c19b79425c77fc4"},"headline":"Linux Command Line Basics","datePublished":"2024-10-08T20:26:45+00:00","dateModified":"2024-10-08T20:44:35+00:00","mainEntityOfPage":{"@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/"},"wordCount":336,"publisher":{"@id":"https:\/\/gratisvps.net\/blog\/#organization"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#primaryimage"},"thumbnailUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg","keywords":["linux commands"],"articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/","url":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/","name":"Linux Command Line Basics - Gratisvps.net | Blog Daily Tech Info","isPartOf":{"@id":"https:\/\/gratisvps.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#primaryimage"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#primaryimage"},"thumbnailUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg","datePublished":"2024-10-08T20:26:45+00:00","dateModified":"2024-10-08T20:44:35+00:00","breadcrumb":{"@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#primaryimage","url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg","contentUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/Basic-Linux-Commands.jpg","width":1200,"height":678,"caption":"Basic-Linux-Commands"},{"@type":"BreadcrumbList","@id":"https:\/\/gratisvps.net\/blog\/linux-command-line-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gratisvps.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Linux Command Line Basics"}]},{"@type":"WebSite","@id":"https:\/\/gratisvps.net\/blog\/#website","url":"https:\/\/gratisvps.net\/blog\/","name":"Gratisvps.net | Blog Daily Tech Info","description":"Discover reliable VPS server solutions","publisher":{"@id":"https:\/\/gratisvps.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gratisvps.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/gratisvps.net\/blog\/#organization","name":"Gratisvps.net | Blog Daily Tech Info","url":"https:\/\/gratisvps.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/logo.png","contentUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/logo.png","width":250,"height":67,"caption":"Gratisvps.net | Blog Daily Tech Info"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/cddcf8cb5192d0713c19b79425c77fc4","name":"ariete","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ca385b636b0c0fe0e98479594ff50902?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ca385b636b0c0fe0e98479594ff50902?s=96&d=mm&r=g","caption":"ariete"},"sameAs":["https:\/\/gratisvps.net\/blog"],"url":"https:\/\/gratisvps.net\/blog\/author\/ariete\/"}]}},"_links":{"self":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/141"}],"collection":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":6,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions\/155"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/media\/146"}],"wp:attachment":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}