Questions tagged [path]

PATH (all upper case) is the name of an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are searched for.

Filter by
Sorted by
Tagged with
1
vote
0answers
21 views

“locate” returns relative instead of absolute paths

One advised me to post here since this would be more appropriate (I am going to remove the previous one). On my MacBook, I have the following entry in root's crontab: 0 */4 * * * cd /private/var/root &...
0
votes
1answer
11 views

How to access custom PATH programs from .desktop file

I have a scripts directory that I have added to path (specifically in the ~/.bashrc). I can run the scripts as expected from the terminal, but it says that the command is not found when I run it from ...
0
votes
1answer
27 views

Can not set PATH permanently in order to launch MATLAB system wide

I have the following issue: I recently installed MATLAB R2018a in my artix linux (runit). I can launch matlab from the location where the launcher is, i.e., /usr/local/MATLAB/R2018a/bin, but if I try ...
0
votes
4answers
62 views

How to check duplicate commands in $PATH?

For example, youtube-dl has different ways to install it onto machine. I downloaded/installed it multiple times in not-same ways inadvertently, so that resulted that I have several youtube-dl ...
1
vote
2answers
77 views

I sourced my .bashrc file and now get: “-bash: /usr/bin/whoami: Argument list too long” so that I can't execute any commands. Using ssh

I use an external HPC system via ssh. Today I tried to install "ASE" a Python code for dealing with atoms. I followed instructions to modify my .bashrc file but kept getting ...
2
votes
2answers
20 views

Problems specifying path of TeXLive 2020 on Fedora 33

The Fedora TeXLive packages do not correctly compile one of my documents. Others cannot reproduce this issue, so I'm testing if a separate TeXLive installation solves the problem. The Fedora packages ...
0
votes
0answers
26 views

File cannot be executed even after modifying $PATH [duplicate]

I'm working with the JetBrains Clion IDE. To be able to start Clion from any directory, I added cide/bin to your $PATH environment variable. Here cide is the installation home. The updated $PATH ...
2
votes
2answers
136 views

bashrc export path problem

I opened my .bashrc file using nano .bashrc in terminal. After that, at the end of the .bashrc file I added following lines export PATH= "$PATH:$HOME/moltemplate/moltemplate” export PATH= "$...
1
vote
1answer
46 views

update PATH in bashrc

I would like to update my PATH in the .bashrc file, but the last line is export PS1="... So I do not know where I should put export PATH= I am using Ubuntu 20 Edit 1 Content of bashrc # ~/....
1
vote
2answers
41 views

What is the most effecient way to start this application?

I installed BurpSuiteCommunity and the executable went to /opt folder, so I moved it to /usr/bin because /usr/bin is part of my PATH and most of applications were already there. I tried to do run ...
0
votes
0answers
31 views

.bashrc modifications not taking effect

A very basic question that I can't figure out the answer to: in my $HOME/.bashrc I'm setting up all sorts of stuff including the PATH environment variable, e.g. via: export PATH="$PATH:$HOME/bin&...
0
votes
0answers
28 views

What is changing my $PATH variable? I don't want all of these extra directoriesT

I am new to Linux and am having trouble finding answers that make sense to me. My /etc/environment folder is different than what my $PATH variable is. I want to "start fresh" with the ...
0
votes
1answer
51 views

Trying to add a directory with various scripts to my PATH, but it is not running the script when called from outside the directory

Update: Included a lot more relevant information, thank you for suggesting including this! I am very new to Linux and I am trying to run scripts that someone else created. I recently learned about the ...
1
vote
1answer
61 views

command not found when script run inside another process

This is running in qBittorrent, as a completion script. When the download is complete, I want this script to run and ship off all the files to a remote server. The script, when run from terminal ...
0
votes
1answer
36 views

How does rsync distinguish between destination being a local directory with ':' and '@' in the dirname, or a remote SSH? [duplicate]

Technically, we could create a local directory called user@example.com: (it's a valid UNIX path, isn't it?), so how does rsync internally know if: rsync test/ user@example.com:/test/ means: the ...
0
votes
1answer
27 views

User of "rename -p/--mkpath--make-dirs

I try to understand the syntax of the rename command option switch "-p/--mkpath--make-dirs". I am searching now the web for some time, but this option does not seem to be very common. I ...
0
votes
1answer
70 views

tmux errors: The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable

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/...
1
vote
1answer
81 views

dwmblocks not reading $PATH

I'm using archlinux, dwm and dwmblocks. At startup dwmblocks shows only the icons of the blocks', without loading the scripts output. If I run $ killall dwmblocks and restart $ dwmblocks & it ...
1
vote
1answer
46 views

.ssh/environment: Is variable expansion (PATH=…:$PATH) supposed to work or not?

I've just discovered ~/.ssh/environment and the PermitUserEnvironment setting in OpenSSH Server. It works great for setting variables to literal strings; e.g.: # host ~/.ssh/environment PATH=/home/...
0
votes
0answers
31 views

PATH broken when trying to add directory permanently for all users

What specific changes need to be made to the following in order to safely add the /home/myapp-host/bin directory location to the $PATH permanently for all users on Amazon Linux 2, which is based on ...
-3
votes
2answers
43 views

Add a directory to path

I would like to know how to add a directory to path (such as my Downloads folder) so that whenever I type cd Downloads from whatever directory, I go to ~/Downloads.
0
votes
1answer
35 views

PATH behaves differently in bash and csh when directory is execute only?

We have some applications in various subdirectories that we limit access to by unix group, and we want them to be execute only. So, for example, if we want members of the "chem" group to ...
0
votes
1answer
43 views

Bash script fails with spaces in absolute path variables

I am running following script to copy files from CIFS share mounted on the system to another destination system. The absolute path of CIFS share contains few spaces and so it fails for that path, I ...
0
votes
1answer
35 views

How do I create a cron to find and delete directories that are 90 days old but ignore 2 sub-directories?

What I have I have a cron currently setup that finds and deletes directories & files that are 90 days old What I need I would like the crontab to ignore two directories when deleting directories &...
0
votes
1answer
106 views

Testing if file/ directory is in a specified directory in bash [closed]

My program has 2 arguments $fileordirectoryname and $directorypath. I am trying to test whether both arguments are in the same directory. How would I do so in bash script? #check if both arguments are ...
2
votes
1answer
69 views

Warning “not on PATH” when I tried to install python extensions. I'm new to Linux — what does this mean?

When I tried to add python extension to vscode, it showed that some extension(?) was absent and automatically prompted the following command /bin/python3 /home/myusername/.vscode/extensions/ms-python....
0
votes
0answers
27 views

How to put a Wine program in my path

I want to be able to open NoteTab Pro (a Windows-version text editor running on WINE) in my path so I can right-click to open a file in it. Right now, "NoteTab Pro" is in the right-click ...
-2
votes
1answer
64 views

Somethings wrong with .bashrc

I read a tutorial about how to add a folder to PATH. I added the below to the .bashrc file: export PATH=/opt/aseprite/build/bin When I tried to use source ./.bashrc from zsh I got this error /home/...
1
vote
1answer
134 views

Permanently add item to $PATH using Ansible on RHEL7

What specific syntax must be changed below in order for Ansible to successfully add /home/another-user/bin to the $PATH variable on a RHEL 7 VM? Current Version of Playbook: The playbook we are using ...
0
votes
2answers
70 views

add single binary to PATH

Maybe this is a WSL question, in which case I'm not sure where to ask. I have a single binary that I want to add to path ~/.scry/bin/scry. So I went to ~/.bashrc and added export PATH="$HOME/....
3
votes
2answers
139 views

Awk: Scripts on the path?

Is there a way to put little awk scriptoids on the path? For example, I have this really useful collation operation: // collate-csv.awk FNR > 1 || NR == 1 And I can use it in all sorts of great ...
0
votes
1answer
428 views

Use manually added SDL2 with steamcmd.sh | CentOS 8

I installed the steamcmd and I got the following error: Steam>Warning: failed to init SDL thread priority manager: SDL not found Because CentOS8 centos-release-8.2-2.2004.0.1.el8.x86_64 only comes ...
12
votes
1answer
544 views

What exactly does the “p” option of the `command` command in the bash shell do?

command command in bash: Run command with arguments ignoring any shell function named command. The '-p' option means to use a default value for $PATH that is guaranteed to find all of the standard ...
0
votes
1answer
21 views

How to dynamically change path for different environment?

I have different versions of CUDA installed in /usr/local/cuda-... and I need some way to select the right version for different projects. I tried export CUDA_HOME=/usr/local/cuda-10.0 export PATH=\$...
0
votes
1answer
51 views

Can't execute python program from any folder

I have a python program in ~/bin called program.py. If i'm in that folder, I can run the program from the terminal without problems, but if I'm in another folder I get: python: can't open file '...
0
votes
2answers
72 views

Command 'exa' not found

I've installed exa via cargo and added the path to my ~/.bashrc file: PATH=/root/.cargo/bin:$PATH as per the post-installation instructions: warning: be sure to add /root/.cargo/bin to your PATH to ...
-2
votes
2answers
50 views

Environment Variable and PATH issue

I tried to set an environment variable for the Sublist3r tool and messed up. Now whenever I switch to the root user (with sudo su) the only command I am able to use is exit (attaching the images). I ...
1
vote
1answer
45 views

Duplicate Paths, Issues with .bash_profile

I was directed here from Stack Overflow after posting a question about struggling to get PyExifTool to work. It seems however that the problem was multifaceted and being a novice I was told to seek ...
2
votes
2answers
984 views

.bashrc: syntax error near unexpected token '('

I use the Windows Subsystem For Linux. On launching Ubuntu, I get this errors: -bash: /home/divyansh/.bashrc: line 119: syntax error near unexpected token `(' -bash: /home/divyansh/.bashrc: line 119: `...
0
votes
1answer
170 views

how to mount [bind] an external hard drive folder using UUID to another folder on a pc

in short: on pc: /home/user/Music: ├─music_from_disk_1 └─music_from_disk_2 on 2 HDD's in root: /music, /docs, /photos. need to automatically mount HDD1/music to .../music_from_disk_1 and HDD2/music ...
0
votes
1answer
30 views

Unable to create symbolic link of compiled executable to my PATH directory

I've compiled this build of the SameBoy Game Boy emulator with success. However I'm unable to ln -s the resulting executable to my PATH directory in ~/.bin/, as it returns too many levels of symbolic ...
2
votes
2answers
577 views

How to tar only specified files via wildcard?

I would like to tar only specified files. I have tried: $ ls $des/bin a.c analysis.hpp classify.hpp main.cpp split.hpp a.cpp a.out grade.cpp main.out student.cpp ...
0
votes
1answer
76 views

CentOS 7 PATH overwritten by /etc/bashrc

I have a Dell server running CentOS 7. I installed the iDRAC remote access tools from Dell, and it reset my PATH variable. Some more details: I have a script in /etc/profiles.d which adds something to ...
0
votes
1answer
46 views

What is my shell environement?

I decided to post here because my problem deals with Linux issues. I am trying to run Jupiter notebook from pyspark.sql import SparkSession -------------------------------------------------------------...
1
vote
0answers
120 views

Set permanent environment variable for all shells

I want to set the root level environment variable that comes from sh(1) so that it is shared across all shells: sh, bash, zsh, and fish. I can see in /etc/profile there's a command /usr/libexec/...
1
vote
0answers
72 views

Kali's /etc/profile.d script not being sourced in Kali Linux 2020.2

I'm running the OVA image for Kali 2020.2 that Offensive Security pre-built. XFCE desktop environment. I've noticed that the folders /sbin and /usr/sbin are missing from the $PATH variable for the ...
2
votes
1answer
134 views

How to remove duplicate python installation

Yesterday while using Python I noticed that a large number of packages I otherwise used were missing, like matplotlib. At the same time, some other program that I use that call to Python and ...
1
vote
1answer
59 views

Where should I put the other files of my command?

I made an script with Python, made it executable, and put it in /usr/local/bin/. However I have many other files that related to my command, where should I put them? I tried to put them in /usr/local/ ...
0
votes
1answer
441 views

command not found even though it's on the path

I've read most of the posts on this topic but no luck so far. :$ echo $PATH /home/eoan/bin/firefox-dev/:/home/eoan/bin/Telegram/:/home/eoan/.local/share/umake/bin:/usr/local/sbin:/usr/local/bin:/usr/...
1
vote
1answer
25 views

Newbie to linux confused about how to install packages not in the repositories

I've installed Firefox-developer and Telegram for Ubuntu. Firefox comes along with many files, not just a binary file. Telegram comes with the binary plus an 'updater'. This is more generally that for ...

1
2 3 4 5
17