{"id":220,"date":"2017-06-30T11:54:47","date_gmt":"2017-06-30T11:54:47","guid":{"rendered":"https:\/\/newdelhihosting.co.in\/blog\/?p=220"},"modified":"2017-07-04T12:57:02","modified_gmt":"2017-07-04T12:57:02","slug":"basic-commands-2","status":"publish","type":"post","link":"https:\/\/www.newdelhihosting.co.in\/blog\/basic-commands-2\/","title":{"rendered":"Linux Basic commands"},"content":{"rendered":"<p style=\"text-align: left;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Usefull Linux Basic Commands to learn.\u00a0A command is an instruction given by a user telling a computer to do something.Commands are generally issues by typing them in at the command line and then pressing enter key,which passes them in to shell.\u00a0A shell is a program that reads commands that are types on a keyboard and then executes them.It is the most basic method for a user to interact with the system.<br \/>\n<!--more--><\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"30%\">cd<\/td>\n<td width=\"100%\">Changes directory<\/td>\n<\/tr>\n<tr>\n<td>cd ..<\/td>\n<td width=\"100%\">Move up one directory<\/td>\n<\/tr>\n<tr>\n<td>cd ~<\/td>\n<td width=\"100%\">Take you back to your home directory<\/td>\n<\/tr>\n<tr>\n<td>mkdir<\/td>\n<td width=\"100%\">Make directory<\/td>\n<\/tr>\n<tr>\n<td>rmdir<\/td>\n<td width=\"100%\">Remove directory<\/td>\n<\/tr>\n<tr>\n<td>ls<\/td>\n<td width=\"100%\">list files<\/td>\n<\/tr>\n<tr>\n<td>mv<\/td>\n<td width=\"100%\">Move file from one directory to another<\/td>\n<\/tr>\n<tr>\n<td>cp<\/td>\n<td width=\"100%\">copy file with *.bak<\/td>\n<\/tr>\n<tr>\n<td>tat cvf *.tar dirname\/<\/td>\n<td width=\"100%\">c-&gt;Create a new archive<br \/>\nv-&gt;files which are processed<br \/>\nf-&gt;following is the archive filename<br \/>\nThe cvf option does not provide any compression<\/td>\n<\/tr>\n<tr>\n<td>tar cvzf \u00a0*.tar.gz dirname\/<\/td>\n<td width=\"100%\">zip compression by using z option<\/td>\n<\/tr>\n<tr>\n<td>unzip filename<\/td>\n<td width=\"100%\">unzip the file name<\/td>\n<\/tr>\n<tr>\n<td>tar -xzvf *.gz<\/td>\n<td width=\"100%\">Extract the zipfile<\/td>\n<\/tr>\n<tr>\n<td>df<\/td>\n<td width=\"100%\">disk free<br \/>\ndf -H -Show the no of occupied blocks in GB,MB<\/td>\n<\/tr>\n<tr>\n<td>free<\/td>\n<td width=\"100%\">Displays information about RAM and swap space<\/td>\n<\/tr>\n<tr>\n<td>touch filename.*<\/td>\n<td width=\"100%\">Create file<\/td>\n<\/tr>\n<tr>\n<td>rm -f filename.*<\/td>\n<td width=\"100%\">Remove file<\/td>\n<\/tr>\n<tr>\n<td>rm -rf filename.*<\/td>\n<td>Remove folder<\/td>\n<\/tr>\n<tr>\n<td>date MMDDHHmmYYY<\/td>\n<td>To set date<\/td>\n<\/tr>\n<tr>\n<td>Set time and date<\/td>\n<td>date -s &#8220;19 APR 2012 11:14:00<\/td>\n<\/tr>\n<tr>\n<td>About Permissions<\/td>\n<td>date -s &#8220;19 APR 2012 11:14:00<\/td>\n<\/tr>\n<tr>\n<td>About Permissions<\/td>\n<td>\u00a01)chmod 755(or)0755&#8212;-&gt; drwxr-xr-x d-&gt;denotes type of file Group and world should not be enable to write access.thats denotes &#8220;-&#8221;<\/p>\n<p>2)chmod 644(or)0644&#8212;&#8212;&gt;drw-r&#8211;r&#8211;<\/p>\n<p>3)chmod 700(or)0700&#8212;&#8212;-&gt;drwx&#8212;&#8212;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For Linux Distribution Commands Refer this link <a href=\"https:\/\/newdelhihosting.co.in\/blog\/basic-commands\/\">Linux Distro-Command<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Usefull Linux Basic Commands to learn.\u00a0A command is an instruction given by a user telling a computer to do something.Commands are generally issues by typing them in at the command line and then pressing enter key,which passes them in to shell.\u00a0A shell is a program that&#8230;<\/p>\n","protected":false},"author":1,"featured_media":429,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"jetpack_featured_media_url":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/cmd.jpg","_links":{"self":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/220"}],"collection":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":20,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":369,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/220\/revisions\/369"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/media\/429"}],"wp:attachment":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}