

{"id":1508,"date":"2017-01-21T10:39:40","date_gmt":"2017-01-21T10:39:40","guid":{"rendered":"http:\/\/data-flair.training\/blogs\/?p=1508"},"modified":"2018-11-15T14:48:39","modified_gmt":"2018-11-15T09:18:39","slug":"linux-commands-with-syntax","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/","title":{"rendered":"Linux Commands with Syntax &#8211; Most Commonly Used Part 4"},"content":{"rendered":"<h2>1. Linux Commands with Syntax<\/h2>\n<p>Today, we will discuss top used Linux commands with syntax. Few Linux commands with examples are available for easy learning and to make you ready for Linux programming. It covers commands like rm, shred, man, head, tail, grep, egrep, whoami, chmod, chown.<\/p>\n<p>So, let&#8217;s start Linux Commands with syntax.<\/p>\n<div id=\"attachment_42184\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-42184\" class=\"size-full wp-image-42184\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01.jpg\" alt=\"Linux Commands with Syntax - Most Commonly Used Part 4\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-42184\" class=\"wp-caption-text\">Linux Commands with Syntax &#8211; Most Commonly Used Part 4<\/p><\/div>\n<h2>2. A List of Linux Commands with Syntax<\/h2>\n<p>Let&#8217;s start a list of\u00a0Linux Commands with Syntax &amp; usage:<\/p>\n<h3>2.1. rm<\/h3>\n<p><strong style=\"font-size: 16px\">a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ rm file1<\/pre>\n<p>This Linux command will remove the file which u pass as an argument<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ rm -r &lt;dir or file&gt;<\/pre>\n<p>This command will remove the nonempty file or directory<\/p>\n<p><strong>c. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ rm -rf dir1<\/pre>\n<p>If we want to remove the directory which does not exist, it will give a warning message but with the help of f flag, we can remove the dir1. It will ignore the warning.<\/p>\n<h3>2.2. shred<\/h3>\n<p><strong style=\"font-size: 16px\">a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ shred -zuv file1<\/pre>\n<p>This command will surely remove your file after overwriting it<\/p>\n<h3>2.3. man<\/h3>\n<p><strong>a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ man ls<\/pre>\n<p>Through this command, you can see the usage manual of any command like ls, cat etc.<\/p>\n<h3>2.4. head<\/h3>\n<p><strong style=\"font-size: 16px\">a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ head -2 file2.txt<\/pre>\n<p>This Linux command prints first 2 lines of the file, by default it will print 10 lines.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ head -2 f1.txt f2.txt<\/pre>\n<p>This command will display the first two lines of both the files with the file name<\/p>\n<p><strong>c. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ head *<\/pre>\n<p>This command will display the content of all files in the current working directory with the file name<\/p>\n<p><strong>d. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ ls | head<\/pre>\n<p>This command will list the first 10(by default or we can give value like -2) directory or files of current working directory<\/p>\n<h3>2.5. tail<\/h3>\n<p><strong style=\"font-size: 16px\">a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ tail -2 file2.txt<\/pre>\n<p>This command displays last 2 lines of the file.<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ history | tail<\/pre>\n<p>This Linux command displays the last 10 lines of your bash history<\/p>\n<h3>2.6. grep<\/h3>\n<p><strong style=\"font-size: 16px\">a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep apple file1.txt<\/pre>\n<p>This command returns the lines which have the word apple from the file1.txt<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep -n apple file1.txt<\/pre>\n<p>This command will display the line number having apple word in file1<\/p>\n<p><strong>c. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep -i apple file1.txt<\/pre>\n<p>This command does case insensitive matching (both lower and upper case of apple)<\/p>\n<p><strong>d. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep --color apple file1.txt<\/pre>\n<p>This command colours the matching text. Here it will color Apple in File1<\/p>\n<p><strong>e. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep -A1 apple file1.txt<\/pre>\n<p>This Linux command returns the file with matching word as well as one more line after it<\/p>\n<p><strong>f. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep -B1 apple file1.txt<\/pre>\n<p>This command returns the file with matching word as well as one more line before it<\/p>\n<p><strong>g. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep -C1 apple file1.txt<\/pre>\n<p>This command returns matching text with after and before one line as well<\/p>\n<p><strong>h. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep -v apple file1.txt<\/pre>\n<p>This command returns the line which doesn\u2019t contain the matching word.<\/p>\n<p><strong>i. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ grep -R apple directory1<\/pre>\n<p>This command searches for the apple word in all the files in the directory<\/p>\n<p><strong>j. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ history | grep &lt;any command name&gt;<\/pre>\n<p>This Linux command searches the history on terminal which have the specified command<\/p>\n<p><strong>k. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ history | grep cd | head -12<\/pre>\n<p>This command searches history of first 12 commands which have cd word match<\/p>\n<p><strong>l. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ cat file.text _grep -m 2 apple<\/pre>\n<p>This command shows only top two lines which have word apple in the specified file<\/p>\n<h3>2.7. egrep<\/h3>\n<p><strong style=\"font-size: 16px\">a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ egrep \"apple|orange\" file.txt<\/pre>\n<p>This command returns line with apple or orange<\/p>\n<p><strong>b. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ which &lt;any command or folder&gt;<\/pre>\n<p>This command shows the path of the specified command or folder in your computer<\/p>\n<h3>2.8. whoami<\/h3>\n<p><strong style=\"font-size: 16px\">a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ whoami<\/pre>\n<p>This Linux command shows the user name<\/p>\n<h3>2.9. chmod<\/h3>\n<p><strong style=\"font-size: 16px\">a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ chmod entity+permissiontype<\/pre>\n<p>This command is used to grant or add permission (read,write,execute) to the entity(user,group,other)<\/p>\n<p>e.g. $ chmod u+r filename \/\/ add read permission to user(you)<\/p>\n<p>$ chmod ug+rwx filename \/\/ add read write execute permission to user and group<\/p>\n<p>$ chmod go-wx filename \/\/ remove write and execute permission from group and other but not to user(you) to access the file<\/p>\n<p>$ chmod a-rwx filename \/\/ remove all the permissions from user, group and rest of the world<\/p>\n<h3>2.10. chown<\/h3>\n<p><strong style=\"font-size: 16px\">a. Usage:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sudo chown ec2-user myfile<\/pre>\n<p>This Linux command is used to change owner. Suppose myfile is owned by root(admin) but root want to change the owner to ec2-user.<\/p>\n<p>So, this was all about Linux Command with Syntax. Hope you like our explanation. Furthermore, if you have a query, feel free to ask in the comment section.<\/p>\n<p>Learn more commands in <a href=\"http:\/\/data-flair.training\/blogs\/linux-commands-list-linux-programming-part-3\/\">Linux commands-Part 3.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Linux Commands with Syntax Today, we will discuss top used Linux commands with syntax. Few Linux commands with examples are available for easy learning and to make you ready for Linux programming. It&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":42184,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[2695,4961,6634,8155,8303,8304,15221],"class_list":["post-1508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-common-linux-commands","tag-frequently-used-linux-commands","tag-important-linux-commands","tag-learn-linux-commands","tag-linux","tag-linux-commands","tag-useful-linux-commands"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Linux Commands with Syntax - Most Commonly Used Part 4 - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn Linux commands with Syntax - Basic Linux commands directory like rm, shred, man, head, tail, grep, egrep, whoami, chmod, chown.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Commands with Syntax - Most Commonly Used Part 4 - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn Linux commands with Syntax - Basic Linux commands directory like rm, shred, man, head, tail, grep, egrep, whoami, chmod, chown.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-21T10:39:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-15T09:18:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Commands with Syntax - Most Commonly Used Part 4 - DataFlair","description":"Learn Linux commands with Syntax - Basic Linux commands directory like rm, shred, man, head, tail, grep, egrep, whoami, chmod, chown.","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:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/","og_locale":"en_US","og_type":"article","og_title":"Linux Commands with Syntax - Most Commonly Used Part 4 - DataFlair","og_description":"Learn Linux commands with Syntax - Basic Linux commands directory like rm, shred, man, head, tail, grep, egrep, whoami, chmod, chown.","og_url":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2017-01-21T10:39:40+00:00","article_modified_time":"2018-11-15T09:18:39+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Linux Commands with Syntax &#8211; Most Commonly Used Part 4","datePublished":"2017-01-21T10:39:40+00:00","dateModified":"2018-11-15T09:18:39+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/"},"wordCount":667,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01.jpg","keywords":["common linux commands","frequently used linux commands","important linux commands","learn linux commands","linux","linux commands","useful linux commands"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/","url":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/","name":"Linux Commands with Syntax - Most Commonly Used Part 4 - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01.jpg","datePublished":"2017-01-21T10:39:40+00:00","dateModified":"2018-11-15T09:18:39+00:00","description":"Learn Linux commands with Syntax - Basic Linux commands directory like rm, shred, man, head, tail, grep, egrep, whoami, chmod, chown.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/01\/Linux-Commands-with-Syntax-01.jpg","width":1200,"height":628,"caption":"Linux Commands with Syntax - Most Commonly Used Part 4"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/linux-commands-with-syntax\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Linux Commands with Syntax &#8211; Most Commonly Used Part 4"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/1508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=1508"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/1508\/revisions"}],"predecessor-version":[{"id":42185,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/1508\/revisions\/42185"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/42184"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=1508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=1508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=1508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}