{"id":488,"date":"2024-11-18T11:42:22","date_gmt":"2024-11-18T11:42:22","guid":{"rendered":"https:\/\/www.xopsschool.com\/tutorials\/?p=488"},"modified":"2024-11-21T11:18:17","modified_gmt":"2024-11-21T11:18:17","slug":"top-basic-linux-commands-for-users","status":"publish","type":"post","link":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/","title":{"rendered":"Top Basic Linux Commands for Users"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">1. pwd<\/h3>\n\n\n\n<p>&nbsp;Print the current working directory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"365\" height=\"71\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png\" alt=\"\" class=\"wp-image-641\" style=\"width:814px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png 365w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd-300x58.png 300w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. ls<\/strong><\/h3>\n\n\n\n<p>List all files and directories in the current directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ls -l : Listing all files \n\nls -a : Lists all files, including hidden files (.) dot file is hidden files.\n\nls -al or ls -l -a or ls -la : Formatted listing including hidden files.\n\nls -lh : Shows file sizes in a human-readable format (Size KB, MB, Date &amp; Time, File name, Owner amd Group, Link). Reverse Order Listing.\n\nls -lha : Show hidden files (those starting with a dot).\n\nls -r : Lists files and directories in reverse alphabetical order. Sorting by Modification Time.\n\nls - i :Displays the inode number of each file along with the file name. Colorized Listing.\n\nls -it : Lists files sorted by modification time, newest first. Recursive Listing.<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"447\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/ls.png\" alt=\"\" class=\"wp-image-642\" style=\"width:804px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/ls.png 550w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/ls-300x244.png 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"539\" height=\"239\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/ls-lh.png\" alt=\"\" class=\"wp-image-643\" style=\"width:802px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/ls-lh.png 539w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/ls-lh-300x133.png 300w\" sizes=\"auto, (max-width: 539px) 100vw, 539px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. cd :<\/strong> <\/h3>\n\n\n\n<p>Change the directory<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/ : Go to the root directory.\n\ncd .. : One step back \n\ncd    : One folder to another folder\n\ncd ~ : Change to the home directory of the current user\n\ncd -  : Go back to the previous directory<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"258\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cd.png\" alt=\"\" class=\"wp-image-644\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cd.png 902w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cd-300x86.png 300w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cd-768x220.png 768w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. mkdir<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>======&gt; Create a folder (example : prit) \n\nCreate a multiple folder \n\n=====&gt; mkdir prit1 prit2 prit3 \n\nCreate a directory with intermediate directories (create parent directories).\n\nmkdir -p parent_directory\/sub_directory\/sub_sub_directory\n\n=====&gt; example : folder prit1\n\n=====&gt; mkdir -p local1\/local2\/local3<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"628\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/mkdir.png\" alt=\"\" class=\"wp-image-645\" style=\"width:897px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/mkdir.png 476w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/mkdir-227x300.png 227w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/figure>\n\n\n\n<p>Create a folder with specific permissions set at the time of creation.<\/p>\n\n\n\n<p>=====&gt; <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-dark-purple-color\">mkdir -m 755 <\/mark><\/p>\n\n\n\n<p>Create folder with verbose output to show what is being done.<\/p>\n\n\n\n<p>=====&gt; <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-coffee-color\">mkdir -v <\/mark><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"451\" height=\"280\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/image.png\" alt=\"This image has an empty alt attribute; its file name is mkdir-v.png\" class=\"wp-image-647\" style=\"width:891px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/image.png 451w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/image-300x186.png 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. rmdir <\/strong><\/h3>\n\n\n\n<p>Remove an empty folder <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6. <code>rm<\/code>&nbsp;<\/strong><\/h3>\n\n\n\n<p>Remove files or folder<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm &#91;file name]\n\nrm -r &#91;folder name]\n\nrm -f &#91;folder name]\n\nrm -fr &#91;folder name]\n\nrm -v &#91;folder name]\n\nrm -rvf &#91;file name] ==== full delete\n\nunder temp delete : =====&gt; rm -rvf * (data name)<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"453\" height=\"521\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/rm-.png\" alt=\"\" class=\"wp-image-648\" style=\"width:893px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/rm-.png 453w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/rm--261x300.png 261w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7. echo :<\/strong> Display a line of text\/ they are use message print .<\/h3>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>8. <\/strong>cat : displays the contents of new.txt<\/h3>\n\n\n\n<p>1. Display the content of a single file anu <\/p>\n\n\n\n<p>2. 2. Concatenate multiple files and display the content cat anu,ekta,deepa<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"242\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cat1.png\" alt=\"\" class=\"wp-image-650\" style=\"width:923px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cat1.png 560w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cat1-300x130.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/figure>\n\n\n\n<p>                                               <\/p>\n\n\n\n<p>3. Concatenate files and redirect the output to a new file cat anu deepa &gt; mahi<\/p>\n\n\n\n<p>4. Append content of one file to another cat anu &gt;&gt; deepa<\/p>\n\n\n\n<p>5. Display line numbers while viewing the content of a file <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cyan-color\">cat -n anu [modify file = cat &gt;&gt;file name]<\/mark><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">ctrl +d === save the file<\/mark><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"456\" height=\"616\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cat-all.png\" alt=\"\" class=\"wp-image-651\" style=\"width:885px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cat-all.png 456w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/cat-all-222x300.png 222w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">9. <code>more<\/code> : <\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>View the contents of a file page by page\nmore anu\n\nView multiple files sequentially\nmore anu deepa\n\nDisplay a specific number of lines at a time\nmore -num 20 filename.txt\n\nStart viewing from a specific line\nmore +100 filename.txt\n\nView the contents of a file with line numbers\nmore -n filename.txt<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"627\" height=\"296\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/more.png\" alt=\"\" class=\"wp-image-652\" style=\"width:875px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/more.png 627w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/more-300x142.png 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>10. <code>head<\/code> <\/strong>&amp; tail <strong>Command<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>The head command displays the first few lines of a file\n\nDisplay the first 10 lines.\n\n                       head prit\n\nSpecify the number of lines\n\n             head -n 20 prit\n\nDisplay the first 50\n\n               head -c 50 filename.txt<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"549\" height=\"537\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/head.png\" alt=\"\" class=\"wp-image-655\" style=\"width:869px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/head.png 549w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/head-300x293.png 300w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>tail :<\/strong>  <\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>The tail command displays the last few lines of a file \n\nDisplay the last 10 lines\n\n        <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-dark-purple-color\">head prit\n<\/mark>\nSpecify the number of lines\n\n     <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-lite-red-color\">tail -n 20 prit<\/mark>\n\nDisplay the last 50\n\n    <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-lite-green-color\">tail -c 50 prit<\/mark>\n\nMonitor file changes in real-time\n\n   <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-orange-color\"> tail -f prit<\/mark>\n\nThe -f option is very useful for monitoring log files as they get updated. It will display new lines as they are added.<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"678\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/tail.png\" alt=\"\" class=\"wp-image-656\" style=\"width:830px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/tail.png 496w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/tail-219x300.png 219w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>11. tac<\/strong><\/h3>\n\n\n\n<p>its display the file in reserve order (from last line)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"605\" height=\"310\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/tac.png\" alt=\"\" class=\"wp-image-660\" style=\"width:833px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/tac.png 605w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/tac-300x154.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>12. id <\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-style-plain is-layout-flow wp-block-quote-is-layout-flow\">\n<p>used to display the user ID &amp; group ID        <\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"77\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/id.png\" alt=\"\" class=\"wp-image-661\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/id.png 956w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/id-300x24.png 300w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/id-768x62.png 768w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>13. wc <\/strong><\/h3>\n\n\n\n<p>used to count the lines, words and characters in a file.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"364\" height=\"77\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/wc.png\" alt=\"\" class=\"wp-image-662\" style=\"width:765px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/wc.png 364w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/wc-300x63.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p><strong>14. date : <\/strong>used to display date, time, timezone and more.<\/p>\n\n\n\n<p><strong>15. time :<\/strong> used to display the time to execute a command.<\/p>\n\n\n\n<p><strong>16. cal :<\/strong> used to display the current months calendar with the current date highlighted. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"296\" src=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/date-time.png\" alt=\"\" class=\"wp-image-663\" style=\"width:720px;height:auto\" srcset=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/date-time.png 401w, https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/date-time-300x221.png 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/figure>\n\n\n\n<p><strong>17. clear :<\/strong> used to clear the terminal screen.<\/p>\n\n\n\n<p><strong>18. exit :<\/strong> used to exit from the current shell.<\/p>\n\n\n\n<p><strong>19. sleep :<\/strong> used to hold the terminal amount of time, it takes time in seconds.<\/p>\n\n\n\n<p><strong>20. mv :<\/strong> used to move a file and directory from one to another location.<\/p>\n\n\n\n<p>         mv &lt;file name&gt; &lt;another name&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. pwd &nbsp;Print the current working directory. 2. ls List all files and directories in the current directory. 3. cd : Change the directory 4. mkdir Create a folder with specific permissions set at the time of creation. =====&gt; mkdir -m 755 Create folder with verbose output to show what is being done. =====&gt; mkdir &#8230; <a title=\"Top Basic Linux Commands for Users\" class=\"read-more\" href=\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/\" aria-label=\"Read more about Top Basic Linux Commands for Users\">Read more<\/a><\/p>\n","protected":false},"author":200020,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-488","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Top Basic Linux Commands for Users - XOps Tutorials!!!<\/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:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Top Basic Linux Commands for Users - XOps Tutorials!!!\" \/>\n<meta property=\"og:description\" content=\"1. pwd &nbsp;Print the current working directory. 2. ls List all files and directories in the current directory. 3. cd : Change the directory 4. mkdir Create a folder with specific permissions set at the time of creation. =====&gt; mkdir -m 755 Create folder with verbose output to show what is being done. =====&gt; mkdir ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/\" \/>\n<meta property=\"og:site_name\" content=\"XOps Tutorials!!!\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-18T11:42:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-21T11:18:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png\" \/>\n<meta name=\"author\" content=\"Pritesh Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pritesh Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/\"},\"author\":{\"name\":\"Pritesh Kumar\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1\"},\"headline\":\"Top Basic Linux Commands for Users\",\"datePublished\":\"2024-11-18T11:42:22+00:00\",\"dateModified\":\"2024-11-21T11:18:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/\"},\"wordCount\":271,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/\",\"name\":\"Top Basic Linux Commands for Users - XOps Tutorials!!!\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png\",\"datePublished\":\"2024-11-18T11:42:22+00:00\",\"dateModified\":\"2024-11-21T11:18:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#primaryimage\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png\",\"contentUrl\":\"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png\",\"width\":365,\"height\":71},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.xopsschool.com\/tutorials\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Top Basic Linux Commands for Users\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/\",\"name\":\"XOps Tutorials!!!\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1\",\"name\":\"Pritesh Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g\",\"caption\":\"Pritesh Kumar\"},\"description\":\"Devops Engineer at Cotocus pvt.ltd\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/author\/priteshcotocus\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Top Basic Linux Commands for Users - XOps Tutorials!!!","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:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/","og_locale":"en_US","og_type":"article","og_title":"Top Basic Linux Commands for Users - XOps Tutorials!!!","og_description":"1. pwd &nbsp;Print the current working directory. 2. ls List all files and directories in the current directory. 3. cd : Change the directory 4. mkdir Create a folder with specific permissions set at the time of creation. =====&gt; mkdir -m 755 Create folder with verbose output to show what is being done. =====&gt; mkdir ... Read more","og_url":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/","og_site_name":"XOps Tutorials!!!","article_published_time":"2024-11-18T11:42:22+00:00","article_modified_time":"2024-11-21T11:18:17+00:00","og_image":[{"url":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png","type":"","width":"","height":""}],"author":"Pritesh Kumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pritesh Kumar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#article","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/"},"author":{"name":"Pritesh Kumar","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1"},"headline":"Top Basic Linux Commands for Users","datePublished":"2024-11-18T11:42:22+00:00","dateModified":"2024-11-21T11:18:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/"},"wordCount":271,"commentCount":0,"image":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#primaryimage"},"thumbnailUrl":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/","url":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/","name":"Top Basic Linux Commands for Users - XOps Tutorials!!!","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#primaryimage"},"image":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#primaryimage"},"thumbnailUrl":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png","datePublished":"2024-11-18T11:42:22+00:00","dateModified":"2024-11-21T11:18:17+00:00","author":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1"},"breadcrumb":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#primaryimage","url":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png","contentUrl":"https:\/\/www.xopsschool.com\/tutorials\/wp-content\/uploads\/2024\/11\/pwd.png","width":365,"height":71},{"@type":"BreadcrumbList","@id":"https:\/\/www.xopsschool.com\/tutorials\/top-basic-linux-commands-for-users\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.xopsschool.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Top Basic Linux Commands for Users"}]},{"@type":"WebSite","@id":"https:\/\/www.xopsschool.com\/tutorials\/#website","url":"https:\/\/www.xopsschool.com\/tutorials\/","name":"XOps Tutorials!!!","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1","name":"Pritesh Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g","caption":"Pritesh Kumar"},"description":"Devops Engineer at Cotocus pvt.ltd","url":"https:\/\/www.xopsschool.com\/tutorials\/author\/priteshcotocus\/"}]}},"_links":{"self":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/users\/200020"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/comments?post=488"}],"version-history":[{"count":6,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/488\/revisions"}],"predecessor-version":[{"id":767,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/488\/revisions\/767"}],"wp:attachment":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/media?parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/categories?post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/tags?post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}