🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 18 (from laksa023)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

📄
INDEXABLE
CRAWLED
1 month ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH1.1 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://unix.stackexchange.com/questions/680370/how-to-fix-export-command-not-found-in-centos
Last Crawled2026-03-06 15:48:17 (1 month ago)
First Indexednot set
HTTP Status Code200
Meta Titlepath - How to fix "export: command not found" in CentOS? - Unix & Linux Stack Exchange
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
AFAIK, in shells that use the export command to set environment variables, it is a shell builtin. So if export is not found, you are in a different type of shell. In your case, echo $0 indicates that your shell is csh , where the equivalent syntax would be setenv PATH "/home/archisman/miniconda3/bin:$PATH" However if you are unfamiliar with csh , you will almost certainly find it easier to switch to a more familiar shell such as bash or zsh . If csh has been set as your login shell by a system administrator, then you can likely change that in CentOS without sudo privileges using the chsh command: chsh -s /bin/bash If changing your own login shell in this way is not permitted (because chsh is not setuid root on your system, or /bin/bash is not listed in /etc/shells for example), then the "old school" workaround is to create (or edit, if it already exists) a ~/.login file and exec bash (or exec zsh ) from there to immediately replace the login shell each time you start one.
Markdown
[Skip to main content](https://unix.stackexchange.com/questions/680370/how-to-fix-export-command-not-found-in-centos#content) #### Stack Exchange Network Stack Exchange network consists of 183 Q\&A communities including [Stack Overflow](https://stackoverflow.com/), the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. [Visit Stack Exchange](https://stackexchange.com/) 1. - [Tour Start here for a quick overview of the site](https://unix.stackexchange.com/tour) - [Help Center Detailed answers to any questions you might have](https://unix.stackexchange.com/help) - [Meta Discuss the workings and policies of this site](https://unix.meta.stackexchange.com/) - [About Us Learn more about Stack Overflow the company, and our products](https://stackoverflow.co/) 2. ### [current community](https://unix.stackexchange.com/) - [Unix & Linux](https://unix.stackexchange.com/) [help](https://unix.stackexchange.com/help) [chat](https://chat.stackexchange.com/?tab=site&host=unix.stackexchange.com) - [Unix & Linux Meta](https://unix.meta.stackexchange.com/) ### your communities [Sign up](https://unix.stackexchange.com/users/signup?ssrc=site_switcher&returnurl=https%3A%2F%2Funix.stackexchange.com%2Fquestions%2F680370%2Fhow-to-fix-export-command-not-found-in-centos) or [log in](https://unix.stackexchange.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Funix.stackexchange.com%2Fquestions%2F680370%2Fhow-to-fix-export-command-not-found-in-centos) to customize your list. ### [more stack exchange communities](https://stackexchange.com/sites) [company blog](https://stackoverflow.blog/) 3. [Log in](https://unix.stackexchange.com/users/login?ssrc=head&returnurl=https%3A%2F%2Funix.stackexchange.com%2Fquestions%2F680370%2Fhow-to-fix-export-command-not-found-in-centos) 4. [Sign up](https://unix.stackexchange.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Funix.stackexchange.com%2Fquestions%2F680370%2Fhow-to-fix-export-command-not-found-in-centos) [![Unix & Linux](https://unix.stackexchange.com/Content/Sites/unix/Img/logo.svg?v=eb6eb2b9e73c)](https://unix.stackexchange.com/) 1. 1. [Home](https://unix.stackexchange.com/) 2. [Questions](https://unix.stackexchange.com/questions) 3. [Unanswered](https://unix.stackexchange.com/unanswered) 4. [AI Assist](https://stackoverflow.com/ai-assist) 5. [Tags](https://unix.stackexchange.com/tags) 6. [Chat](https://chat.stackexchange.com/) 7. [Users](https://unix.stackexchange.com/users) 8. [Companies](https://stackoverflow.com/jobs/companies?so_medium=unix&so_source=SiteNav) 2. Stack Internal Stack Overflow for Teams is now called **Stack Internal**. Bring the best of human thought and AI automation together at your work. [Try for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=unix-community&utm_campaign=side-bar&utm_content=explore-teams) [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=unix-community&utm_campaign=side-bar&utm_content=explore-teams) 3. [Stack Internal]() 4. Bring the best of human thought and AI automation together at your work. [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=unix-community&utm_campaign=side-bar&utm_content=explore-teams-compact) **Stack Internal** Knowledge at work Bring the best of human thought and AI automation together at your work. [Explore Stack Internal](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=unix-community&utm_campaign=side-bar&utm_content=explore-teams-compact-popover) # [How to fix "export: command not found" in CentOS?](https://unix.stackexchange.com/questions/680370/how-to-fix-export-command-not-found-in-centos) [Ask Question](https://unix.stackexchange.com/questions/ask) Asked 4 years, 3 months ago Modified [4 years, 3 months ago](https://unix.stackexchange.com/questions/680370/how-to-fix-export-command-not-found-in-centos?lastactivity "2021-12-06 15:13:11Z") Viewed 27k times 3 I got access to a cluster running CentOS 7, and I installed Miniconda in it. When I run `conda`, I get `conda: command not found`. Then I realized that the `export` command does not work, and I cannot add the `miniconda3/bin` directory to PATH. ``` $ export PATH="/home/archisman/miniconda3/bin:$PATH" export: Command not found. ``` I don't have `sudo` access. When I run `echo $0` it says: csh. Is there any way to fix this issue? I want to add the directory containing `conda` to PATH so that I can use `conda` without going to that directory. - [centos](https://unix.stackexchange.com/questions/tagged/centos "show questions tagged 'centos'") - [path](https://unix.stackexchange.com/questions/tagged/path "show questions tagged 'path'") [Share](https://unix.stackexchange.com/q/680370 "Short permalink to this question") [Improve this question](https://unix.stackexchange.com/posts/680370/edit) Follow [edited Dec 6, 2021 at 14:50](https://unix.stackexchange.com/posts/680370/revisions "show all edits to this post") [![Jeff Schaller's user avatar](https://lh4.googleusercontent.com/-wBY-4a1-0jo/AAAAAAAAAAI/AAAAAAAAAfc/4BCoMMK1rqg/s64-rj/photo.jpg)](https://unix.stackexchange.com/users/117549/jeff-schaller) [Jeff Schaller](https://unix.stackexchange.com/users/117549/jeff-schaller)♦ 69k3535 gold badges122122 silver badges268268 bronze badges asked Dec 6, 2021 at 13:14 [![Archisman Panigrahi's user avatar](https://www.gravatar.com/avatar/bee58462d5d2df1f816606d5cae0bff6?s=64&d=identicon&r=PG)](https://unix.stackexchange.com/users/55205/archisman-panigrahi) [Archisman Panigrahi](https://unix.stackexchange.com/users/55205/archisman-panigrahi) 67322 gold badges77 silver badges2121 bronze badges 0 [Add a comment](https://unix.stackexchange.com/questions/680370/how-to-fix-export-command-not-found-in-centos "Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.") \| ## 1 Answer 1 Sorted by: [Reset to default](https://unix.stackexchange.com/questions/680370/how-to-fix-export-command-not-found-in-centos?answertab=scoredesc#tab-top) 4 AFAIK, in shells that use the `export` command to set environment variables, it is a shell builtin. So if `export` is not found, you are in a different type of shell. In your case, `echo $0` indicates that your shell is `csh`, where the equivalent syntax would be ``` setenv PATH "/home/archisman/miniconda3/bin:$PATH" ``` However if you are unfamiliar with `csh`, you will almost certainly find it easier to switch to a more familiar shell such as `bash` or `zsh`. If `csh` has been set as your *login shell* by a system administrator, then you can likely change that in CentOS *without* `sudo` privileges using the `chsh` command: ``` chsh -s /bin/bash ``` If changing your own login shell in this way is not permitted (because `chsh` is not setuid root on your system, or `/bin/bash` is not listed in `/etc/shells` for example), then the "old school" workaround is to create (or edit, if it already exists) a `~/.login` file and `exec bash` (or `exec zsh`) from there to immediately replace the login shell each time you start one. [Share](https://unix.stackexchange.com/a/680380 "Short permalink to this answer") [Improve this answer](https://unix.stackexchange.com/posts/680380/edit) Follow [edited Dec 6, 2021 at 15:13](https://unix.stackexchange.com/posts/680380/revisions "show all edits to this post") answered Dec 6, 2021 at 14:36 [![steeldriver's user avatar](https://www.gravatar.com/avatar/079efb3c08fc853cb3ef1ee9d906c18f?s=64&d=identicon&r=PG)](https://unix.stackexchange.com/users/65304/steeldriver) [steeldriver](https://unix.stackexchange.com/users/65304/steeldriver) 84k1212 gold badges125125 silver badges175175 bronze badges 3 - 1 `chsh -s /bin/bash` does not allow me to change shell. The other option works. An alternative is to execute bash in `.cshrc`. Archisman Panigrahi – [Archisman Panigrahi](https://unix.stackexchange.com/users/55205/archisman-panigrahi "673 reputation") 2021-12-06 16:12:28 +00:00 Commented Dec 6, 2021 at 16:12 - @ArchismanPanigrahi doing it from `~/.cshrc` may have unintended consequences if you need to use a non-login csh at any point steeldriver – [steeldriver](https://unix.stackexchange.com/users/65304/steeldriver "83,984 reputation") 2021-12-06 17:28:53 +00:00 Commented Dec 6, 2021 at 17:28 - It’ll break graphical logins, for sure. I saw that a lot at a job where the default shell was csh and was generated from LDAP. There are ways to make it work, you just need to pass the parameters to the new shell. jsbillings – [jsbillings](https://unix.stackexchange.com/users/3976/jsbillings "24,942 reputation") 2021-12-09 02:05:20 +00:00 Commented Dec 9, 2021 at 2:05 [Add a comment](https://unix.stackexchange.com/questions/680370/how-to-fix-export-command-not-found-in-centos "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| ## You must [log in](https://unix.stackexchange.com/users/login?ssrc=question_page&returnurl=https%3A%2F%2Funix.stackexchange.com%2Fquestions%2F680370) to answer this question. Start asking to get answers Find the answer to your question by asking. [Ask question](https://unix.stackexchange.com/questions/ask) Explore related questions - [centos](https://unix.stackexchange.com/questions/tagged/centos "show questions tagged 'centos'") - [path](https://unix.stackexchange.com/questions/tagged/path "show questions tagged 'path'") See similar questions with these tags. - The Overflow Blog - [DeveloperWeek 2026: Making AI tools that are actually good](https://stackoverflow.blog/2026/03/05/developerweek-2026/) - [Building brains for bulldozers](https://stackoverflow.blog/2026/03/06/building-brains-for-bulldozers/) - Featured on Meta - [Logo updates to Stack Overflow's visual identity](https://meta.stackexchange.com/questions/417394/logo-updates-to-stack-overflows-visual-identity) #### Related [1](https://unix.stackexchange.com/questions/229011/iptables-command-not-found-centos-5-5 "Question score (upvotes - downvotes)") [iptables: command not found - CentOS 5.5](https://unix.stackexchange.com/questions/229011/iptables-command-not-found-centos-5-5) [1](https://unix.stackexchange.com/questions/472883/chroot-ssh-command-not-found "Question score (upvotes - downvotes)") [Chroot SSH - Command not found](https://unix.stackexchange.com/questions/472883/chroot-ssh-command-not-found) [0](https://unix.stackexchange.com/questions/490537/error-in-deploying-application-to-test-server "Question score (upvotes - downvotes)") [Error in Deploying Application to Test Server?](https://unix.stackexchange.com/questions/490537/error-in-deploying-application-to-test-server) [6](https://unix.stackexchange.com/questions/566686/which-cant-find-location-of-executable-even-though-it-runs "Question score (upvotes - downvotes)") ["which" can't find location of executable even though it runs](https://unix.stackexchange.com/questions/566686/which-cant-find-location-of-executable-even-though-it-runs) [0](https://unix.stackexchange.com/questions/588239/path-in-a-shell-made-by-xterm-not-including-a-command-location-but-shell-still "Question score (upvotes - downvotes)") [\$PATH in a shell made by xterm not including a command location, but shell still able to execute it](https://unix.stackexchange.com/questions/588239/path-in-a-shell-made-by-xterm-not-including-a-command-location-but-shell-still) [0](https://unix.stackexchange.com/questions/624462/trying-to-add-a-directory-with-various-scripts-to-my-path-but-it-is-not-running "Question score (upvotes - downvotes)") [Trying to add a directory with various scripts to my PATH, but it is not running the script when called from outside the directory](https://unix.stackexchange.com/questions/624462/trying-to-add-a-directory-with-various-scripts-to-my-path-but-it-is-not-running) [3](https://unix.stackexchange.com/questions/707286/why-is-executable-found-without-a-full-path-despite-its-location-not-in-search-p "Question score (upvotes - downvotes)") [Why is executable found without a full path despite its location not in search path?](https://unix.stackexchange.com/questions/707286/why-is-executable-found-without-a-full-path-despite-its-location-not-in-search-p) [1](https://unix.stackexchange.com/questions/745801/ideas-for-why-path-has-these-directories "Question score (upvotes - downvotes)") [Ideas for why PATH has these directories](https://unix.stackexchange.com/questions/745801/ideas-for-why-path-has-these-directories) #### [Hot Network Questions](https://stackexchange.com/questions?tab=hot) - [How to access this area in the sewers?](https://gaming.stackexchange.com/questions/418057/how-to-access-this-area-in-the-sewers) - [A question on the equivalence of definitions of separative posets](https://math.stackexchange.com/questions/5127540/a-question-on-the-equivalence-of-definitions-of-separative-posets) - [Puzzling sign at the nature preserve](https://chinese.stackexchange.com/questions/63960/puzzling-sign-at-the-nature-preserve) - [Hole in fuse + damage to PCB when fuse blows, why?](https://electronics.stackexchange.com/questions/766568/hole-in-fuse-damage-to-pcb-when-fuse-blows-why) - [Why did B.C. choose to make daylight saving time instead of standard time permanent?](https://politics.stackexchange.com/questions/94324/why-did-b-c-choose-to-make-daylight-saving-time-instead-of-standard-time-perman) - [Hexagram and Two Circles](https://puzzling.stackexchange.com/questions/137305/hexagram-and-two-circles) - [Area of the fourth equilateral triangle inside a square: more elegant solution?](https://math.stackexchange.com/questions/5127375/area-of-the-fourth-equilateral-triangle-inside-a-square-more-elegant-solution) - [How to build strong fundamentals of programming without using AI](https://stackoverflow.com/questions/79900825/how-to-build-strong-fundamentals-of-programming-without-using-ai) - [Visa runs now illegal or restricted in Thailand after November 2025?](https://travel.stackexchange.com/questions/203373/visa-runs-now-illegal-or-restricted-in-thailand-after-november-2025) - [Constant current load, op-amp feedback and current stabilisation](https://electronics.stackexchange.com/questions/766590/constant-current-load-op-amp-feedback-and-current-stabilisation) - [Historically Informed Performance: Tenuto on long sustained notes](https://music.stackexchange.com/questions/143328/historically-informed-performance-tenuto-on-long-sustained-notes) - [Padded page number with hyperref](https://tex.stackexchange.com/questions/760439/padded-page-number-with-hyperref) - [\\not\\supseteq with kpfonts](https://tex.stackexchange.com/questions/760494/not-supseteq-with-kpfonts) - [Implementation attempt of MPSC queue using atomics - Part 2](https://codereview.stackexchange.com/questions/301513/implementation-attempt-of-mpsc-queue-using-atomics-part-2) - [Why can't we use the bare infinitive after odd?](https://ell.stackexchange.com/questions/374200/why-cant-we-use-the-bare-infinitive-after-odd) - [On deciding between two offers in academia](https://academia.stackexchange.com/questions/226084/on-deciding-between-two-offers-in-academia) - [What's the point of the "diskette ID" on Commodore diskettes?](https://retrocomputing.stackexchange.com/questions/32523/whats-the-point-of-the-diskette-id-on-commodore-diskettes) - [What's the first videogame with a female antagonist?](https://gaming.stackexchange.com/questions/418043/whats-the-first-videogame-with-a-female-antagonist) - [Was "kilo" selected as a prefix in the metric system to avoid sounding like a scatalogical French term?](https://skeptics.stackexchange.com/questions/60499/was-kilo-selected-as-a-prefix-in-the-metric-system-to-avoid-sounding-like-a-sc) - [The philosophy of corruption in every political system](https://philosophy.stackexchange.com/questions/136787/the-philosophy-of-corruption-in-every-political-system) - [A Holiday to Remember... \#11: Great party, dudes\!](https://puzzling.stackexchange.com/questions/137316/a-holiday-to-remember-11-great-party-dudes) - [Trying to align two different logos using adjustbox, but failed](https://tex.stackexchange.com/questions/760492/trying-to-align-two-different-logos-using-adjustbox-but-failed) - [A Wooly X, Fiercely Guarding its Single Egg](https://puzzling.stackexchange.com/questions/137319/a-wooly-x-fiercely-guarding-its-single-egg) - [I've gotten/I got really sick a few times when I drank](https://ell.stackexchange.com/questions/374193/ive-gotten-i-got-really-sick-a-few-times-when-i-drank) [more hot questions](https://unix.stackexchange.com/questions/680370/how-to-fix-export-command-not-found-in-centos) [Question feed](https://unix.stackexchange.com/feeds/question/680370 "Feed of this question and its answers") # Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. ![](https://unix.stackexchange.com/posts/680370/ivc/25d5?prg=983323ea-3fd5-4fac-b79c-5044b71cdf44) ##### [Unix & Linux](https://unix.stackexchange.com/) - [Tour](https://unix.stackexchange.com/tour) - [Help](https://unix.stackexchange.com/help) - [Chat](https://chat.stackexchange.com/?tab=site&host=unix.stackexchange.com) - [Contact](https://unix.stackexchange.com/contact) - [Feedback](https://unix.meta.stackexchange.com/) ##### [Company](https://stackoverflow.co/) - [Stack Overflow](https://stackoverflow.com/) - [Stack Internal](https://stackoverflow.co/internal/) - [Stack Data Licensing](https://stackoverflow.co/data-licensing/) - [Stack Ads](https://stackoverflow.co/advertising/) - [About](https://stackoverflow.co/) - [Press](https://stackoverflow.co/company/press/) - [Legal](https://stackoverflow.com/legal) - [Privacy Policy](https://stackoverflow.com/legal/privacy-policy) - [Terms of Service](https://stackoverflow.com/legal/terms-of-service/public) - Cookie Settings - [Cookie Policy](https://policies.stackoverflow.co/stack-overflow/cookie-policy) ##### [Stack Exchange Network](https://stackexchange.com/) - [Technology](https://stackexchange.com/sites#technology) - [Culture & recreation](https://stackexchange.com/sites#culturerecreation) - [Life & arts](https://stackexchange.com/sites#lifearts) - [Science](https://stackexchange.com/sites#science) - [Professional](https://stackexchange.com/sites#professional) - [Business](https://stackexchange.com/sites#business) - [API](https://api.stackexchange.com/) - [Data](https://data.stackexchange.com/) - [Blog](https://stackoverflow.blog/?blb=1) - [Facebook](https://www.facebook.com/officialstackoverflow/) - [Twitter](https://twitter.com/stackoverflow) - [LinkedIn](https://linkedin.com/company/stack-overflow) - [Instagram](https://www.instagram.com/thestackoverflow) Site design / logo © 2026 Stack Exchange Inc; user contributions licensed under [CC BY-SA](https://stackoverflow.com/help/licensing) . rev 2026.3.5.40532 Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group. This site is not affiliated with Linus Torvalds or The Open Group in any way.
Readable Markdown
AFAIK, in shells that use the `export` command to set environment variables, it is a shell builtin. So if `export` is not found, you are in a different type of shell. In your case, `echo $0` indicates that your shell is `csh`, where the equivalent syntax would be ``` setenv PATH "/home/archisman/miniconda3/bin:$PATH" ``` However if you are unfamiliar with `csh`, you will almost certainly find it easier to switch to a more familiar shell such as `bash` or `zsh`. If `csh` has been set as your *login shell* by a system administrator, then you can likely change that in CentOS *without* `sudo` privileges using the `chsh` command: ``` chsh -s /bin/bash ``` If changing your own login shell in this way is not permitted (because `chsh` is not setuid root on your system, or `/bin/bash` is not listed in `/etc/shells` for example), then the "old school" workaround is to create (or edit, if it already exists) a `~/.login` file and `exec bash` (or `exec zsh`) from there to immediately replace the login shell each time you start one.
Shard18 (laksa)
Root Hash8045678284012640218
Unparsed URLcom,stackexchange!unix,/questions/680370/how-to-fix-export-command-not-found-in-centos s443