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
0 votes
1 answer
16 views

opening default path for root user

It may be trivial what I say, but I need to change the default opening path that OH My ZSH has. since no matter where I preposition myself in a file path (example: /home/username/Downloads/owt), when ...
user avatar
0 votes
0 answers
25 views

Struggling with du, php and crontab

Unix numpty here. I have written a PHP script which I am running from a crontab every so often. Part of the script is a du command from which I extract certain directory sizes which I put into a JSON ...
user avatar
0 votes
0 answers
18 views

"make" command not found due to PATH environment error during building FFmpeg with Zsh

I tried to build FFmpeg via terminal (zsh) and encountered this error : Command 'make' is available in the following places * /bin/make * /usr/bin/make The command could not be located because '/usr/...
user avatar
0 votes
1 answer
34 views

A script /etc/profile.d/{script1}.sh doesn't work correctly

cat /etc/profile.d/atlassian-plugin-sdk.sh export PATH=$PATH:/opt/atlassian/plugin-sdk/bin ls -al /etc/profile.d/atlassian-plugin-sdk.sh -rwxr-xr-x 1 root root 48 Apr 17 21:36 /etc/profile.d/...
user avatar
0 votes
1 answer
21 views

Create a tar.gz file from a different directory, tar must keep files in specific directory structure

Here is my file structure. I am currently residing in test2/ directory, and all commands must run from there. test/ |_test2/ publish/ |_subfolder1/ |_f1 |_f2 |_f3 |...
user avatar
  • 285
0 votes
1 answer
110 views

Command curl not found, even though it is installed

First I've installed curl: company@rb-VirtualBox:~$ apt install curl E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (...
user avatar
  • 1,708
1 vote
1 answer
27 views

zsh - where and which give different results on the first line

I'm using zsh and have 2 ipython executables in my $PATH: ❯ which ipython /usr/local/Caskroom/miniconda/base/bin/ipython ❯ where ipython /usr/local/Caskroom/miniconda/base/envs/tg/bin/ipython /usr/...
user avatar
  • 401
0 votes
1 answer
51 views

Remove paths from $PATH variable with PATH=$(echo "$PATH" | sed -e ...) doesn't work

Because I'm not familiar with the way to add permanent path, I export the wrong dir accidently, which is /home/adolph/anaconda3/condabin. (It should be /home/adolph/anaconda3/bin) adolph@adolph-...
user avatar
1 vote
2 answers
219 views

where does flatpak packages store their configuration files?

I use flatpak to install some applications on my machines for different reasons, now I want to copy my configurations (my home folder hidden directories and files) to a new disk to install linux on ...
user avatar
0 votes
1 answer
49 views

Why ~/USERNAME/bin/some_custom_command does not work as expected?

I read "Linux Bible 10th Edition", chapter 3: Using the shell, at 70 page. There is Tip section: If you want to add your own commands or shell scripts, place them in the bin directory in ...
user avatar
  • 135
0 votes
1 answer
33 views

Parent of symbolic path

I am having trouble understanding this manual about the MediaWiki CMS. Please note that under POSIX systems (Linux...), parent of a symbolic path refers to the link source, NOT to the target! You ...
user avatar
  • 115
0 votes
1 answer
41 views

What is '..' really represent for?

centos version :8.5.2111 I am now at this pwd : /tmp/new/ I need to create a soft link between /home/chenchen/Videos/ and /tmp/softlink Here is my command: ln -s /home/chenchen/Videos/ ../softlink ...
user avatar
-1 votes
1 answer
19 views

Is there a standard location where executables dependencies are stored?

When I list the contents of the bin folders on my system, I often only see the executable files. Some of the executables require additional files such as data and configuration files in order to run. ...
user avatar
  • 137
0 votes
1 answer
27 views

pip holds onto an old path

I haven't been able to find a question / answer that satisfied my needs, but I am sorry if this will be a duplicate question, if so, please let me know. I am using Python (2.7) on a debian server and ...
user avatar
1 vote
0 answers
44 views

libtool (arm): error: only absolute run-paths are allowed

I am cross-compiling SSSD for ARM architecture.  When I run make, I obtain the following error: arm-xilinx-linux-gnueabi-libtool: error: only absolute run-paths are allowed I configure it as ...
user avatar
1 vote
1 answer
34 views

Homebrew unavailable on Ubuntu when connecting via ssh (PATH doesn't include brew location)

I am connecting with ssh from a Mac to a Ubuntu machine with Homebrew installed (as per these instructions). When using the Ubuntu machine directly, brew works fine. But with ssh, I get the the ...
user avatar
  • 131
0 votes
0 answers
15 views

Add all shell scripts in a directory to cinnamon's "start menu"?

I'm used to using launchers like dmenu and rofi where I am able to have a launcher search a $PATH for executables. However, I'm looking to be a bit less customized and spend a little less time ...
user avatar
  • 1,046
2 votes
1 answer
66 views

Can't find where my PATH is set in MacOS

For the record, I am running ZSH, FISH and GNU Bash on my system. I've checked every imaginable location and I cannot find where my $PATH variable is set: $ echo $PATH /usr/local/bin /usr/sbin **/...
user avatar
  • 137
0 votes
0 answers
23 views

xsltproc not supporting path cmdline argument?

I am using xsltrpoc for XSLT 1.0 stylesheets in linux box. I am using XSLT against my XML files. I need to import one file say base.xsl to my file say main.xsl. I realized to use the xsltproc --path ...
user avatar
0 votes
1 answer
39 views

bash appear on top of my terminal

I don't know why but since this morning, I have the complete bash path in my terminal, every time I open it. I don't know how to remove it? thanks bash: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/...
user avatar
  • 65
3 votes
1 answer
86 views

Why is it so that when tar is executed from the script I get "command not found", (it runs without giving me such output from the terminal)?

The following script does the job of archiving /home/jerzy/testdir/: #!/usr/bin/bash XZ_OPT=-9 tar -cJf /home/jerzy/testdir.tar.xz -C /home/jerzy testdir && \ echo "testdir/ already ...
user avatar
0 votes
1 answer
48 views

How can I make a program I've added to the PATH run from the terminal?

I've followed this question to add eclipse to the path (using ln -s to make a link to /usr/local/bin/eclipse from home download), and when i type whereis eclipse I get /usr/local/bin/eclipse, but when ...
user avatar
  • 11
3 votes
1 answer
399 views

Wildcard in PATH (environment variable)

I have a bunch of apps installed locally in my home directory. In order for them to be globally available I add them to PATH in .bashrc: PATH="$PATH:/home/user/apps/app1/bin" PATH="$...
user avatar
1 vote
1 answer
82 views

Get the Absolute Path from feh

The feh command allows you to view images within a folder recursively: feh --recursive --auto-zoom While viewing images, it also allows you to associate custom commands with keys 0-9 on your keyboard....
user avatar
  • 4,313
6 votes
3 answers
1k views

which one of these paths has the priority: /usr or /usr/local

I want to install aria2c manually by copying it to /usr/local/bin since I installed aria2c with apt on /usr/bin which one of those is going to be executed if I type aria2c?
user avatar
  • 165
0 votes
0 answers
140 views

doas doesn't run a /usr/sbin binary

I'm using Debian/GNU/Linux Unstable, and I was trying doas for the first time today, with the following simple config file: $ doas cat /etc/doas.conf permit persist alx as root While it worked for ...
user avatar
  • 222
1 vote
1 answer
113 views

Why not prepend user directory to PATH?

For user scripts, the usual advice is to append their directory to $PATH in one's .profile: PATH="$PATH:$HOME/.myscripts" # or .bin or whatever Apparently that is safer than prepending it: ...
user avatar
  • 203
6 votes
3 answers
407 views

List the PATH's dirs where current user has permission to write?

Can I extract from PATH only the directories where I (current user) have permissions to write? I can imagine I'd need something like echo $PATH | grep... but I can't figure out what.
user avatar
0 votes
4 answers
38 views

How can I extract all the bin directories from PATH in one-liner?

I'd like to extract all bin directories from PATH and set it to a variable. I get confused because all the directories appear in a row separated by : but I just want the bin ones. /home/jo52900/bin:/...
user avatar
0 votes
1 answer
959 views

How to fix "export: command not found" in CentOS?

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 ...
user avatar
0 votes
0 answers
439 views

WSL2: Why am I unable to sudo?

[username@MACHINE bin]$ sudo sudo: Files/Microsoft: command not found I can sudo just fine as root. I thought this might be due to spaces introduced into PATH by WSL, but for both the root and non-...
user avatar
  • 101
0 votes
1 answer
70 views

Unable to add /usr/local/* programs to path

I just unpacked android studio into a folder at this location /usr/local/android-studio. I want to launch /usr/local/android-studio/bin/studio.sh from the terminal by typing studio.sh but I can't ...
user avatar
  • 101
0 votes
1 answer
51 views

`type` command inside bash script, is not showing all paths

When I type echo "${PATH}" | tr -s ':' '\n' | nl from inside a bash script and at the terminal I get the same result: 1 /home/nikhil/Documents/Git/Cs/Architecture/bin 2 /home/...
user avatar
  • 1,362
2 votes
0 answers
122 views

WSL2 not recognizing commands

Using WSL2 on Windows 10, the Linux shell does not recognize commands which are supposed to function. Also, Docker Desktop fails to launch, saying WSL integration stopped and exited with code 1. When ...
user avatar
0 votes
0 answers
16 views

Saving Files In Kdenlive to removeable media

I’m having trouble with with my files in Kdenlive. I can’t find my files through Kdenlive. They just don’t show up. I have been able to load them into Kdenlive by dragging them into Kdenlive using ...
user avatar
1 vote
2 answers
140 views

Accidentally over-wrote LD_LIBRARY_PATH

I'm operating Ubuntu 20.04 on WSL2, and a little new to the bash syntax. I overwrote the LD_LIBRARY_PATH when following a set of CUDA installation instructions, which specified to update as follows: $ ...
user avatar
1 vote
0 answers
93 views

Yum as root only works if I use the sudo command

This is for RHEL 7.8... I support a VM for a customer where another third-party uses the root account to update packages. When they use yum as root, they receive a timeout, like this (note: this is ...
user avatar
-2 votes
2 answers
70 views

What is the right format of PATH variable

I have a macOS and this is the output I get when I do echo $PATH usr/local/opt/avr-gcc@8/bin:/Users/hari/google-cloud-sdk/bin:/Users/hari/.edgedb/bin:/Library/Frameworks/Python.framework/Versions/3.9/...
user avatar
  • 99
2 votes
3 answers
80 views

Find path of original command when overriding it with a shell script?

I'm writing a wrapper script to wrap around the execution of another command; in this case the Chef kitchen command. My script will also be called kitchen and put earlier in $PATH so that running ...
user avatar
  • 102k
0 votes
1 answer
82 views

output of which perl is /bin/perl instead of /usr/bin/perl

Hi I'm running Redhat Server 7.9 and running into an interesting issue. If I type which perl, I get /bin/perl, but it should be /usr/bin/perl. The same for git. This same machine would print /usr/ ...
user avatar
1 vote
3 answers
402 views

What are possible causes to the command not found error, other than the PATH variable?

What are some possible causes, that a command could not be found in Linux? Other than it is not in the PATH? Some background info: When trying to execute pdflatex from vscode, I got some troubles, ...
user avatar
  • 47
0 votes
0 answers
27 views

Is there an utility that tells whether a file path is a network share or on a local hard disk?

I want to test whether some paths are mapped onto remote shares before creating them, as they need to be created before their files are written two. They are sshfs paths for the time being. A basic ...
user avatar
  • 6,657
1 vote
1 answer
1k views

CentOS: Failed to create symbolic link error - no such file or directory

So I have a tar.bz2 folder called 'project' that I extracted in the directory /home/eric I'm asked to make a symbolic link /src/project which points to the directory where I untarred it. The given ...
user avatar
2 votes
0 answers
72 views

System-wide ${PATH} for non-login shells (in Debian)

I saw that similar questions were already asked, but I think the problem still exists. I did a standard thing, added a software to the /opt/ directory. Say, Go. /opt/go is the main directory and /opt/...
user avatar
  • 1,151
0 votes
0 answers
27 views

Use selinux for path based access

Consider the following scenario. I've a ro file system mounted at /system and I can't remount it rw at all. There is a file /system/bin/xyz with context u:r:bin_t. Naturally I cannot change the ...
user avatar
0 votes
1 answer
90 views

Systemd path unit triggering on startup even if target file is unchanged

I'm trying to use a systemd path + service to trigger a python script when a file changes. I'm finding that the script is triggered on startup, independent of when I change the file. Here's the ...
user avatar
2 votes
1 answer
89 views

How do I shadow an executable in $PATH?

I have 2 different versions of pipenvs in my $PATH: $ where pipenv /usr/local/Caskroom/miniconda/base/bin/pipenv #1 /usr/local/bin/pipenv #2 and I want to shadow pipenv #1 so that #2 can take ...
user avatar
  • 401
1 vote
2 answers
34 views

Determine the emplacement of a shared library dependence at compile time

Is it possible to tell at compile time a binary to be built the paths where a given library is going to be found at runtime? For example, when I link against a shared library in a non-standard ...
user avatar
0 votes
0 answers
23 views

Can't set up environment path variables in new Kali Linux 2021.2 installation [duplicate]

I want to add environment path variable for some stuff as I did in kali linux 2019, but it's not working. In kali 2019 i put this: PATH=$PATH:/home/kali/hacking/recon/ in ~/.bashrc and evertything ...
user avatar
  • 1
0 votes
2 answers
95 views

Sudo echo path does not show the path that is used to execute as sudo

I'm confused by the following: [user@QVr740-11 ~]$ which ninja /usr/local/bin/ninja [user@QVr740-11 ~]$ sudo which ninja which: no ninja in (/sbin:/bin:/usr/sbin:/usr/bin) [user@QVr740-11 ~]$ sudo ...
user avatar

1
2 3 4 5
19