{"id":6930,"date":"2021-11-18T12:50:37","date_gmt":"2021-11-18T16:50:37","guid":{"rendered":"https:\/\/kevinjustin.com\/blog\/?p=6930"},"modified":"2021-11-18T14:46:32","modified_gmt":"2021-11-18T18:46:32","slug":"whats-my-path-again","status":"publish","type":"post","link":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/","title":{"rendered":"What&#8217;s my path again?"},"content":{"rendered":"<figure id=\"attachment_6935\" aria-describedby=\"caption-attachment-6935\" style=\"width: 261px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-6935\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat.jpg\" alt=\"Say what? What's my path again\" width=\"261\" height=\"261\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat.jpg 261w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat-150x150.jpg 150w\" sizes=\"auto, (max-width: 261px) 85vw, 261px\" \/><\/a><figcaption id=\"caption-attachment-6935\" class=\"wp-caption-text\">Say What<\/figcaption><\/figure>\n<h3>What&#8217;s my path again?\u00a0 \u00a0Why did my command fail?<\/h3>\n<p>Ever get &#8216;command not found&#8217; errors when calling a command on a machine?\u00a0 Many times, these errors are related to what is defined on said machine.\u00a0 \u00a0So with monitoring tools like SCOM, ALA, Azure Automation, BMC Patrol, the ID used in monitoring rely on filepaths defined on the local server (holds true for Windows\/UNIX).\u00a0 Because sometimes even ls, awk, dir, etc. if their various bin directory filepaths are NOT specified as a security hardening measure.\u00a0 The result of STIG\/Security hardening is ALL scripts\/commands require a fully qualified filepath.<\/p>\n<p>Fully qualifying command paths holds true for Windows and UNIX, from generic OS commands, AND also application specific files (including an executable).\u00a0 Updates are required if you want to supply the short name command.\u00a0 Add the full filepath to PATH= statement.\u00a0 The alternative is to fully qualify in your SCOM mgmt. pack, so the command will run regardless of user, as long as the path is correct.<\/p>\n<p>&nbsp;<\/p>\n<h3>Check for specified shell<\/h3>\n<p>First, let&#8217;s check UNIX to see what shell is specified for user(s).<\/p>\n<p>Second, log into your UNIX server, and check files type:\u00a0 <span style=\"color: #0000ff;\">ls -al .* | more\u00a0\u00a0<\/span><\/p>\n<figure id=\"attachment_6936\" aria-describedby=\"caption-attachment-6936\" style=\"width: 828px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXlsalmore.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-6936\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXlsalmore.png\" alt=\"Use ls -al | more to see what PATH files are in the user directory\" width=\"828\" height=\"439\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXlsalmore.png 828w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXlsalmore-300x159.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXlsalmore-768x407.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-6936\" class=\"wp-caption-text\">Use ls -al | more to see what PATH files are in the user directory<\/figcaption><\/figure>\n<p><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">Third, another option with less output<\/span><\/span><\/p>\n<p><span style=\"color: #0000ff;\"><span style=\"color: #000000;\"> example:\u00a0<\/span> ls -al .*profile<\/span><\/p>\n<figure id=\"attachment_6937\" aria-describedby=\"caption-attachment-6937\" style=\"width: 595px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXlsalprofile.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6937 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXlsalprofile.png\" alt=\"What's my path? Use command ls -al .*profile to find which profile(s) exist\" width=\"595\" height=\"97\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXlsalprofile.png 595w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXlsalprofile-300x49.png 300w\" sizes=\"auto, (max-width: 595px) 85vw, 595px\" \/><\/a><figcaption id=\"caption-attachment-6937\" class=\"wp-caption-text\">What&#8217;s my path? Use command ls -al .*profile to find which profile(s) exist<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Fourth, Look for the shell defined for the user account<\/p>\n<p>On my server, SCOM user is bash shell (but I do NOT have a .bash_profile, only a .profile (also note NO .ksh_profile) )\u00a0 \u00a0Knowing what profiles are configured for user account will help define what is inherited from the OS, (automatically included).\u00a0 Leverage when calling commands in your management packs for custom rules\/monitors.<\/p>\n<p>&nbsp;<\/p>\n<p>In conclusion, if executable is NOT in the filepath variable, you have two ways to resolve the issue:<\/p>\n<ol>\n<li>Create a <span style=\"color: #0000ff;\">.bash_profile<\/span><\/li>\n<li>Call bash\/ksh shell in your script or command line:\u00a0\u00a0 <span style=\"color: #0000ff;\">bash; &lt;commandhere&gt;<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong>To check path:<\/strong><\/p>\n<p>UNIX $PATH vs. Windows <span style=\"color: #0000ff;\">$ENV:path<\/span><\/p>\n<p>UNIX example &#8211; \u2018<span style=\"color: #0000ff;\">echo $PATH<\/span>\u2019 from UNIX ssh session\/logon<\/p>\n<figure id=\"attachment_6932\" aria-describedby=\"caption-attachment-6932\" style=\"width: 1156px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXpath.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6932 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXpath.png\" alt=\"What's my path again? Use echo $PATH\" width=\"1156\" height=\"97\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXpath.png 1156w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXpath-300x25.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXpath-1024x86.png 1024w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXpath-768x64.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-6932\" class=\"wp-caption-text\">UNIX what&#8217;s my path? Use echo $PATH<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Windows PowerShell example<\/p>\n<figure id=\"attachment_6933\" aria-describedby=\"caption-attachment-6933\" style=\"width: 1315px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/PowerShellPath.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6933 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/PowerShellPath.png\" alt=\"What's my path? Windows PowerShell example of $PATH\" width=\"1315\" height=\"136\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/PowerShellPath.png 1315w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/PowerShellPath-300x31.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/PowerShellPath-1024x106.png 1024w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/PowerShellPath-768x79.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-6933\" class=\"wp-caption-text\">What&#8217;s my path? Windows PowerShell example of $PATH<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Here\u2019s my .profile that sets up SCOM user (only \/bin shown)<\/p>\n<figure id=\"attachment_6934\" aria-describedby=\"caption-attachment-6934\" style=\"width: 862px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXdotProfile.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6934 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXdotProfile.png\" alt=\"What's my path? Use UNIX .profile to find PATH\" width=\"862\" height=\"622\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXdotProfile.png 862w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXdotProfile-300x216.png 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/UNIXdotProfile-768x554.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-6934\" class=\"wp-caption-text\">What&#8217;s my path? Use UNIX .profile to find PATH<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Here\u2019s a UNIX .profile example:<\/p>\n<p><a href=\"https:\/\/www.unix.com\/unix-for-dummies-questions-and-answers\/21995-basic-profile-setup.html\">https:\/\/www.unix.com\/unix-for-dummies-questions-and-answers\/21995-basic-profile-setup.html<\/a><\/p>\n<p>Example<\/p>\n<p><span style=\"color: #0000ff;\">set PATH=$PATH:\/usr\/homes\/myhome\/sqlldr:\/appl\/oracle\/product\/9.2.0\/bin<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What&#8217;s my path again?\u00a0 \u00a0Why did my command fail? Ever get &#8216;command not found&#8217; errors when calling a command on a machine?\u00a0 Many times, these errors are related to what is defined on said machine.\u00a0 \u00a0So with monitoring tools like SCOM, ALA, Azure Automation, BMC Patrol, the ID used in monitoring rely on filepaths defined &hellip; <a href=\"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;What&#8217;s my path again?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5,11,12],"tags":[584,585,582,580,581,583,579,461],"class_list":["post-6930","post","type-post","status-publish","format-standard","hentry","category-administration","category-best-practice","category-troubleshooting","category-unix","tag-bash","tag-ksh","tag-passwd","tag-path","tag-profile","tag-set-path","tag-ubuntu","tag-unix"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What&#039;s my path again?<\/title>\n<meta name=\"description\" content=\"What&#039;s my path again? Did you get command not found? Blog discusses how UNIX .*profile files work to define local PATH variables.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What&#039;s my path again?\" \/>\n<meta property=\"og:description\" content=\"What&#039;s my path again? Did you get command not found? Blog discusses how UNIX .*profile files work to define local PATH variables.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/\" \/>\n<meta property=\"og:site_name\" content=\"Kevin Justin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-18T16:50:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-18T18:46:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat.jpg\" \/>\n<meta name=\"author\" content=\"WordPress Administrator\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"WordPress Administrator\" \/>\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:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/\"},\"author\":{\"name\":\"WordPress Administrator\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\"},\"headline\":\"What&#8217;s my path again?\",\"datePublished\":\"2021-11-18T16:50:37+00:00\",\"dateModified\":\"2021-11-18T18:46:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/\"},\"wordCount\":482,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/SayWhat.jpg\",\"keywords\":[\"bash\",\"ksh\",\"passwd\",\"path\",\"profile\",\"set path\",\"ubuntu\",\"unix\"],\"articleSection\":[\"Administration\",\"Best Practice\",\"Troubleshooting\",\"UNIX\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/\",\"name\":\"What's my path again?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/SayWhat.jpg\",\"datePublished\":\"2021-11-18T16:50:37+00:00\",\"dateModified\":\"2021-11-18T18:46:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\"},\"description\":\"What's my path again? Did you get command not found? Blog discusses how UNIX .*profile files work to define local PATH variables.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/SayWhat.jpg\",\"contentUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/SayWhat.jpg\",\"width\":261,\"height\":261,\"caption\":\"Say What\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2021\\\/11\\\/18\\\/whats-my-path-again\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What&#8217;s my path again?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/\",\"name\":\"Kevin Justin&#039;s Blog\",\"description\":\"Operational monitoring tools including System Center, Azure Monitor\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\",\"name\":\"WordPress Administrator\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"caption\":\"WordPress Administrator\"},\"sameAs\":[\"https:\\\/\\\/kevinjustin.com\"],\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/author\\\/wordpress_admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What's my path again?","description":"What's my path again? Did you get command not found? Blog discusses how UNIX .*profile files work to define local PATH variables.","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:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/","og_locale":"en_US","og_type":"article","og_title":"What's my path again?","og_description":"What's my path again? Did you get command not found? Blog discusses how UNIX .*profile files work to define local PATH variables.","og_url":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/","og_site_name":"Kevin Justin&#039;s Blog","article_published_time":"2021-11-18T16:50:37+00:00","article_modified_time":"2021-11-18T18:46:32+00:00","og_image":[{"url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat.jpg","type":"","width":"","height":""}],"author":"WordPress Administrator","twitter_card":"summary_large_image","twitter_misc":{"Written by":"WordPress Administrator","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/#article","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/"},"author":{"name":"WordPress Administrator","@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508"},"headline":"What&#8217;s my path again?","datePublished":"2021-11-18T16:50:37+00:00","dateModified":"2021-11-18T18:46:32+00:00","mainEntityOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/"},"wordCount":482,"commentCount":0,"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat.jpg","keywords":["bash","ksh","passwd","path","profile","set path","ubuntu","unix"],"articleSection":["Administration","Best Practice","Troubleshooting","UNIX"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/","url":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/","name":"What's my path again?","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/#primaryimage"},"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat.jpg","datePublished":"2021-11-18T16:50:37+00:00","dateModified":"2021-11-18T18:46:32+00:00","author":{"@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508"},"description":"What's my path again? Did you get command not found? Blog discusses how UNIX .*profile files work to define local PATH variables.","breadcrumb":{"@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/#primaryimage","url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat.jpg","contentUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2021\/11\/SayWhat.jpg","width":261,"height":261,"caption":"Say What"},{"@type":"BreadcrumbList","@id":"https:\/\/kevinjustin.com\/blog\/2021\/11\/18\/whats-my-path-again\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kevinjustin.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What&#8217;s my path again?"}]},{"@type":"WebSite","@id":"https:\/\/kevinjustin.com\/blog\/#website","url":"https:\/\/kevinjustin.com\/blog\/","name":"Kevin Justin&#039;s Blog","description":"Operational monitoring tools including System Center, Azure Monitor","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kevinjustin.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508","name":"WordPress Administrator","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","caption":"WordPress Administrator"},"sameAs":["https:\/\/kevinjustin.com"],"url":"https:\/\/kevinjustin.com\/blog\/author\/wordpress_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/6930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/comments?post=6930"}],"version-history":[{"count":6,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/6930\/revisions"}],"predecessor-version":[{"id":6945,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/6930\/revisions\/6945"}],"wp:attachment":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/media?parent=6930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/categories?post=6930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/tags?post=6930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}