All Questions
Tagged with paths command-line
132
questions
0
votes
0
answers
12
views
MGLTools Segmentation Fault
I'm currently working as an intern for computational chemistry. One of the applications that we need is MGLTools which I installed using this website:
https://bioconda.github.io/recipes/mgltools/...
0
votes
1
answer
48
views
Problem in executing terminal commands
Command 'sed' is available in the following places
* /bin/sed
* /usr/bin/sed
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
sed: command ...
0
votes
1
answer
86
views
Help repairing broken Python base on Linux with Miniedit-WiFi setup
I previously uninstalled Python3.12 (on which I had ran Miniedit-WiFi
tool) and left the default Python3.11; however the following
console-log error keeps popping out whenever I run a Python script on ...
1
vote
2
answers
171
views
Where can I add to the ***universal*** path?
I'm a script kiddie of sorts and enjoy writing bash scripts for things, and I keep them in a repository that I synchronize, and on my personal computers I keep it in a home/otherStuff/customBin folder,...
-1
votes
2
answers
460
views
Accidentally changed PATH variable and I cant change it back, or use vim etc..help
I know there are many questions like this, but I unfortunately dont know enough about Ubuntu to be able to apply it to my situation. I have all my stuff saved for work on a remote machine, that i ...
0
votes
2
answers
81
views
Adding simple shortcut on the terminal, the right way
I am trying to add folder to PATH variable (for specific user only).
so to ~/.bashrc i have added
export PATH=$PATH:/home/username/Tools/scripts/
within this folder i am having scripts and some ...
1
vote
1
answer
331
views
Terminal is neither showing path nor working
The default terminal and the VS code Terminal are neither showing path nor working.
I have updated the system, cleared the cache, reinstalled the terminal, installed the new other terminals, and saw ...
-1
votes
1
answer
71
views
ns3 installation error
NS3_MODULE_PATH = ['/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin', '/sbin', '/bin', '/usr/games', '/usr/local/games', '/usr/lib/wsl/lib', '/mnt/c/Program Files/Common Files/Oracle/Java/...
4
votes
2
answers
2k
views
How to create an alias for a "cat" file usable in a path
I have two huge files (150G each) and I need to use a tool for which I should supply them as a single file (since the tool only accepts one file). However, I do not want to merge these files for ...
0
votes
1
answer
540
views
How do I use sudo on a script I made myself that is already in my path and executable?
How do I make a script that I made myself that I already put in my path and made executable usable with sudo? (Xubuntu 22.04.1.)
The script is located here: ~/bin/myScript.
When, from an arbitrary ...
-2
votes
2
answers
502
views
In concatenating two variables, the system expands the resulting path and returns unexpected results. How do I prevent this?
Question 2.0:
Given the code:
SSLPasswordFilePath="$SSLFilesDir$SSLPasswordFile"
When I run:
"$SSLPasswordFilePath"
I get this unexpected result:
/tmp/ConfigFiles/SSL/Password....
0
votes
1
answer
439
views
How to add browser cutable path in ubuntu
just trying out ubuntu, and installed a node/npm CLI application where we can run the command in the terminal. That command/tool requires us to specify the browser e
cutable path every time when we ...
1
vote
2
answers
635
views
Ubuntu CLI, replace a long filepath/filename with a shortcut
I have a long path to some of my files and I don't want to type and/or use the Tab-key as much when using it with commands in the Terminal.
So I want to add "shortcuts" to some of them (both ...
4
votes
1
answer
5k
views
"/usr/bin/python: No module named virtualenvwrapper" error when opening terminal
I'm using Ubuntu 20.04 (clean installation, I did not upgrade from a previous one) and when I open a new terminal (simply by Ctrl+Alt+T), it always starts with the output shown below (also shown in ...
-1
votes
1
answer
2k
views
deleted a folder from root(user), ubuntu how do i access the trash bin from terminal?
i have deleted a folder from the root user dir (same where var,usr,home,etc,lib is stored) using the Webmin browser GUI ...on url http:// IP :10000
VPS:
ubuntu 18.04
User : root
no GUI, only SSH and ...
0
votes
1
answer
13k
views
How to change python3 path pointer?
I am using Ubuntu 20.04.2 LTS with python version 3.9.5 installed.
When I type which python in the terminal, it shows /usr/bin/python which is the default path for python2 (2.7 in my case).
But when I ...
1
vote
1
answer
3k
views
Export PATH does not work after restart
I am new to this. I installed drush and did
export PATH=$PATH:~/.config/composer/vendor/drush/drush
So that I can execute drush from the command line with the drush command
My issue is that I have to ...
0
votes
1
answer
97
views
Can't Log In After Adding To Path
I was trying to add Jupyter Notebooks to the permanent path in linux. I followed these steps:
Open a terminal window using Ctrl+Alt+T
Run the command gedit ~/.profile
Add the line export PATH="$...
-5
votes
1
answer
703
views
how to write a command to remove a folder, name includes spaces.? [duplicate]
How can I delete a folder with whitespace in its name, but without quoting the folder name? I also need to be prompted to confirm the deletion. I know how to do it like this:
rm -ri /home/user/'my ...
0
votes
2
answers
280
views
Find the list of immediate next directory from the given location for reaching a destination file?
We can find the full absolute path of a destination file using find keyword. In my case, I need the list of all immediate next directory to my given location which can lead me to my program log file ...
1
vote
1
answer
1k
views
A path set in /etc/profile/ doesn't appear on other users' environment
I have the following PATH variable in /etc/profile. The last line should allow me to use the conda command for any user.
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and ...
2
votes
1
answer
2k
views
Start intellij from anywhere
I have recently installed Ubuntu and I'm a bit confused.
I have downloaded VSCode and I can simply start it from my terminal using code.
I downloaded intellij and tried idea and intellij but none of ...
0
votes
1
answer
904
views
tmux errors running bash commands due to path
When I run $tmux and open an instance of a tmux session and try to run a command such as ls I receive the following error:
∆ ls
Command 'ls' is available in the following places
* /bin/ls
* /usr/bin/...
4
votes
1
answer
5k
views
How to run scripts that are in PATH?
I'm pretty much completely new to Ubuntu, so bear with me.
I have made a few scrips without the .sh extension and granted them permission with chmod 755, and the scripts run just fine as long as I'm ...
0
votes
2
answers
329
views
After installing python3.7, virtualenv and pip on newly installed 20.04, terminal window will not open
I needed to install python3.7, virtualenv, and pip. After doing so, I added ~/.local/bin to $PATH. I echo'd $PATH and saw that it added .local/bin and then closed the terminal app. Terminal will no ...
0
votes
1
answer
54
views
Trouble starting MATLAB via Alt+F2
I've recently installed MATLAB to /opt/matlab/R2016a and I've managed to give myself the privilidges to run it. Next I wanted to be able to run it from a terminal and or the Alt+F2 "quick command line"...
2
votes
1
answer
516
views
After installing binary to another directory, error "No such file or directory"
After uninstalling a program with apt and reinstalling it in another location (ex. pypy with snap), running the program from command line reports bash: /usr/bin/pypy: No such file or directory, but ...
0
votes
0
answers
161
views
My installation path is different with the documentation path, why?
Recently I'm installing OpenVino from scratch following this documentation : Install Intel® Distribution of OpenVINO™ toolkit for Linux* . Now after several steps, I realized that the output path ...
0
votes
1
answer
6k
views
How to permanently change a PATH variable in Debian [closed]
I'm trying to change the directory that is accessed when I call blender in my terminal.
This is currently where it is:
...$ which blender
/usr/bin/blender
And I'd like to instead use the version ...
25
votes
1
answer
9k
views
Why isn't tilde recognised as home folder in this case?
This doesn't work:
$ ls "~/.wine/drive_c/tools/Family Tree v2.0"
ls: cannot access '~/.wine/drive_c/tools/Family Tree v2.0': No such file or directory
But this does:
$ ls "/home/daniel/.wine/...
1
vote
1
answer
750
views
Can't append to PATH in ~./bashrc using $Home
I just want to add a path in ~/.bashrc as:
export PATH="$Home/gg/gamit/bin:$Home/gg/kf/bin:$Home/gg/com:$PATH"
But when I am using echo $PATH is showing it as:
/gg/gamit/bin:/gg/kf/bin:/gg/com:/...
1
vote
1
answer
2k
views
How to add a directory to PATH in Linux ? I am using Windows Subsystem for Linux - Ubuntu [duplicate]
I am new at Linux and I am facing a problem.
I am trying to add the bin directory to the PATH in the Linux executing the command below:
$ export PATH="/opt/gcc-arm/bin:$PATH"
However, when I try to ...
1
vote
3
answers
12k
views
How to run an executable file from a different directory without cd or modifying the PATH?
Variations similar to what I want to ask exist but I could not find the exact question, so I'll ask it here.
Let's say I have a comiled .c file resulting in the executable ex which is located as /mnt/...
-1
votes
1
answer
3k
views
Command not found error after trying to install mgltools on WSL
I am working on Ubuntu windows application. I want to use a tool and I have downloaded the file and install it is in /usr/local/bin. I want to access the tool from anywhere and for that I have write ...
0
votes
1
answer
17k
views
My $PATH variable is messed up. How to change it back?
Whenever I try basic commands in the terminal like sudo or ls, I get this error:
Command 'sudo' is available in '/usr/bin/sudo' The command could not be located because '/usr/bin' is not included ...
1
vote
1
answer
2k
views
I've installed lsd in Ubuntu 19.04. But when I run lsd command, it shows command not found
Command 'lsd' is available in '/snap/bin/lsd'
The command could not be located because '/snap/bin' is not
included in the PATH environment variable.
lsd: command not found
How can I solve this ...
0
votes
2
answers
724
views
can relative path access more than one level?
I'm new to Linux and was wondering if relative path can access more than one level.
For example:
/home/john/Desktop/Myfiles/text.txt
If i'm currently at ~/ can i jump to text.txt without having to ...
1
vote
1
answer
2k
views
Pass/set `current directory` to/for a shell script from Java in Ubuntu 16.04
While trying to automate an installation process in Ubuntu 16.04 with a .jar file, I did not know how to solve the following problem:
Problem description
Part of the installation files automatically ...
0
votes
1
answer
1k
views
How to set, permanently, my own directory instead of /home/bin in $PATH in ubuntu? [duplicate]
This might be a repeated question, but I couldn't relate to any previous answer. I basically want to run my shell-script from anywhere in ubuntu 16.04 (whether I'm inside the directory where the shell-...
10
votes
5
answers
11k
views
Why doesn’t `mv file /dir` move the file to a subdirectory of the current working directory?
I was in my /etc directory and typed the command
me@mylaptop:/etc$ sudo mv MyFile.conf /openvpn
I thought that would move the file into the directory openvpn which is a subdirectory of the /etc ...
2
votes
1
answer
958
views
Shebang line for Node does not work in Ubuntu 18
I have just created an Ubuntu 18.04 instance on AWS and copied an existing project over. The usual shebang line for Node #!/usr/bin/env node now doesn't work. It gave:
#!/usr/bin/env: No such file ...
0
votes
0
answers
84
views
Zimbalaka: What is the full path to directory in celeryd.conf?
I am trying to install and run Zimbalaka (a Zim file creator for Offline MediaWiki in an app like Kiwix) in an Ubuntu Desktop 18.10.
At a certain point, instructions tell to modify a line to contain ...
1
vote
1
answer
107
views
How to COPY a directory location? [duplicate]
I've been struggling with this since I've installed Ubuntu:
How do I copy a directory location?
For example:
/home/user/downloads/game/game.sh
Do I have to type every single letter on terminal?
...
1
vote
1
answer
1k
views
'sudo' is not available (command is not in the PATH)
Okay. I don't just copy-paste commands from the net, and I didn't see how/why that one would mess things up, but here....
I wanted to configure webstorm for dev. So I followed these instructions:
$ ...
1
vote
0
answers
310
views
IRSTLM path environment variable
I am trying to get IRSTLM to work.
I have set the pah using:
PATH=:/usr/local/lib/irstlm:$IRSTLM
And then when I am tyring to run the build-lm.sh function it is telling me that it is located in /usr/...
4
votes
2
answers
5k
views
How to get the real path of a sh file that is being sourced
I added this line into my ~/.bashrc
. /mnt/c/Users/enzo/drive/projects/dotfiles/init.sh
And and inside of init.sh I am trying to get the path of init.sh but I am not able to.
I tried this so far:
...
3
votes
2
answers
8k
views
App installed in directory on the PATH, but not found. Weird /snap/bin - error message
I have the app minikube in /usr/local/bin/minikube. When I do minikube version with the whole path, I get:
$ /usr/local/bin/minikube version
minikube version: v0.28.2
When I do minikube version ...
-1
votes
1
answer
1k
views
How do i specify a file location in terminal?
Running the following commands:
wine /Home/Downloads/steamsetup.exe
wine Username/Home/downloads/steamsetup.exe
resulted in file not found. How do I specify a file location in terminal?
I am on ...
1
vote
1
answer
18k
views
Zip2john issue on ubuntu 18.04 LTS [duplicate]
Problem:
root@ITSASECRET:~/src/john/run# zip2john
: command not found
I want to add that the srcript is in the directory. I also had a lot of trouble installing Rexgen as well as Bison and ...
1
vote
1
answer
130
views
iPython3 opened in Terminal - os.path.dir adds letter 'd' to path and triggers File not found error
Trying to iterate through a folder.
I am working on ipython3, opened in Terminal.
This is the code (in python 3.6.4):
for filename in os.listdir('.'):
for file in filename:
with open(os....