Skip to main content

All Questions

Tagged with
4 votes
1 answer
960 views

Are there alternatives to alias I'm not aware of?

Today I started to notice weird behavior running a local command for a binary installed through Go. It seems the command is aliased, but consulting alias, it isn't. The command buf somehow executes cp!...
Tim's user avatar
  • 1,054
0 votes
2 answers
65 views

How to find files with find tool in system path ($PATH)? Or alternatively, How to specify starting-point directory for find as an expression?

For example, I want to find all symlinks that reference to particular binary in all directories that belong to system $PATH. This can be successfully achieved with manual specification of all ...
Anton Samokat's user avatar
0 votes
0 answers
225 views

How can I echo/print the environment files of a directory/path in a Jenkinsfile during a build?

In a Jenkins file, I have the following code: #!/usr/bin/env groovy .... def env_prod = 'prod.env' def entrypoint = "${env.WORKSPACE} The above is then combined like this: ${env.WORKSPACE}/$...
Patrick_Chong's user avatar
1 vote
3 answers
751 views

How to do wildcard/glob expansion when the pattern and the resolved pathes contain spaces?

I need to expand some pathes using a POSIX sh or Bash: Here are two example patterns (I chose overly complicated patterns on purpose): $ npm pkg get workspaces | jq -r '.[]' apps/app* lib/{be,fe *} ...
Forivin's user avatar
  • 887
0 votes
4 answers
189 views

split PATH variable INTO few lines

I have split my PATH variable into few lines, in the file to make them easier to read because it's very long, as I had seen here. This is what I changed in my /etc/profile: # PATH="/usr/share/...
ant's user avatar
  • 29
0 votes
2 answers
166 views

Commands cannot be located after sourcing a bash script

I have a short bash script cdline that takes two arguments PATHS and LINE and changes directory to the respective LINE in PATHS: #!/bin/bash #command for changing directory to that in the given line......
gohomology's user avatar
0 votes
1 answer
217 views

Using '/usr/bin/cd' in a cron script fails while 'cd' works

I have a simple shell script that I am running via cron. I am using it to perform a scheduled git pull operation (yeah, I know there are probably better methods, but this is another team's repository ...
Nick S's user avatar
  • 103
1 vote
1 answer
266 views

Ideas for why PATH has these directories

In my .profile I have PATH="$HOME/.local/lib:$HOME/.local/bin:$HOME/.node_modules/bin:$HOME/.cargo/bin:$HOME/local/bin:/usr/bin:$PATH" In my .zshrc I have miniconda path stuff (export PATH=&...
squirrels's user avatar
  • 119
0 votes
0 answers
30 views

'-bash: line 1: rescanscsi: command not found' error even though script location is in PATH and other script runs fine from same folder [duplicate]

I'm new to linux, trying to switch over from Windows, and I could really use some help. This is actually my first time using a forum such as this so please forgive any errors I make. I'm using Linux ...
TT Radykal's user avatar
3 votes
1 answer
248 views

How to get under Linux Mint LMDE5, the path of a launcher through bash commands stored in the launcher?

Linux Mint LMDE5 is a Debian derivative. On the desktop you can create launchers p.e. via GUI, with which you can not only link something, but also store smaller bash code in it. After creating, the ...
Alfred.37's user avatar
  • 128
0 votes
1 answer
329 views

passing shell script file name as an command line argument java -jar /test.sh and gives me error Error: Unable to access jarfile /test.sh

java -jar /test.sh --name trigger Error: Unable to access jarfile /test.sh test.sh file contains #!/bin/sh jar_name="-Dspring.config.location=application-test.properties somejarFileVersion_1.0&...
R venkata's user avatar
-1 votes
2 answers
261 views

Why Can't I get the path of the root user with sudo

I've changed the PATH environment variable of the root user. The following command are there too show the PATH. su env | grep ^PATH PATH=/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/...
Pierre-olivier Gendraud's user avatar
0 votes
0 answers
71 views

Why do I have repeating lines in my default $PATH

Using CENTOS 7 and BASH, after creating a new user, the user has repeating lines in the path variable. I've looked at this site $PATH duplication issues but it's for a .zshrc. Also, this is for the ...
dave's user avatar
  • 11
0 votes
1 answer
134 views

Path resolution depending on pwd (symlinked dirs)

This sort of situation often occurs under the /sys/bus tree (bash-5.1) : Let's say I get some foo directory listing several symlinks to other directories, ls -ails pathto_foo displaying something of ...
MC68020's user avatar
  • 8,231
0 votes
1 answer
222 views

My $PATH differs from that stated in /etc/profile

This is my entire /etc/profile. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). if [ "$(id -u)" -eq 0 ];...
lini37827's user avatar

15 30 50 per page
1
2 3 4 5
18