AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Unix sudo not found8/11/2023 ![]() There are some commands that can make your system unusable should you enter them blindly. Sudo is not a standard part of all Unix distributions. When playing on the Unix side of Mac OS X, and following instructions you do not understand, it is generally wise to have a very recent full backup of your system. Sudo may already be installed on your Unix system since it is included in many distributions by default. TheĬommand will tell you want leading period filenames exist in your home directory So it is important that you edit the correct file. If will use the first file it finds in the above order and stop looking as soon as it finds a match. The easy solution is to just start a new shell as root, and bash will automatically read /etc/bash.bashrc when it starts. profile as the most likely file name, HOWEVER, your shell will look for 1 of 3 different initialization files starting with As Marcos says, your main problem here is that source is a shell builtin command that affects only the shell process in which it's run. No spaces anywhere else in the line.Īgain, I used. ALSO NOTICE, there is only 1 space between export and PATH. ![]() The entire PATH string is enclosed in double quotes. The $PATH will append your existing PATH to the end of the new PATH environment variable you are setting up. NOTICE there is a colon between the MongoDB directory path, and the $PATH. You want your PATH variable to look like (REMEMBER UPPER/lowercase is IMPORTANT) ALSO spaces or nospaces are important.Įxport PATH="/usr/local/mongodb-osx-x86_64-1.8.2:$PATH" ^O (Control-O) writes out any changes you made. Nano gives you a menu at the botton of the editor with additional commands. Now in this text editor use the arrow keys, and the delete key to find and delete offending text, then type in the corrected text. bin/ls -a # this will show you all the files starting with a period (dot) as in. bash_profile) so it has a properly formed PATH environment variable. It doesn't appear to be recognizing the sudo command. As can be seen in the output that there is no directory pointing toward the sudo, which means that sudo is not installed. Before getting into the installation phase, first check whether sudo is installed on your system or not by using the command: which sudo. bash_profile) and forget about MongoDB, or if you do need MongoDB, then fix your. 42 I have set up a VM using turnkey linux redmine and I'm trying to SSH into the server to install some more items. Step 1: Check the Availability of the sudo. So your choices are delete the offending. PATH is a Unix environment variable that contains a colon separate list of directories where the shell will look for commands when you enter them at the command prompt. ![]() bashrc ( for bash ) file use source command ( or if that's dash or ksh shell, use. bash_profile), then either their instructions were wrong, or you missed a step, which explains why you can not enter commands are not found Don't mind if I post it as an answer Also, FYI for the future, after you edit. ![]() If you installed MongoDB, AND if the instructions had to modify your. When working on the Unix side of Mac OS X, as weill all Unix systems upper and lower case do matter.īut from the error message, I can see that somewhere along the way, mongodb (a database package), and the modification of PATH was done incorrectly. ![]()
0 Comments
Read More
Leave a Reply. |