Skip to main content

All Questions

Tagged with
1 vote
1 answer
226 views

A command in $PATH but can't run and "ln" link not work on Debian 12

The computer system is Debian 12. As needed to update my LaTeX, I tried the command sudo tlmgr update --all, which returned sudo: tlmgr: command not found. But which tlmgr returned /usr/local/texlive/...
Y. zeng's user avatar
  • 145
0 votes
0 answers
56 views

My system can't find command, though I can find it manually [duplicate]

When I had enter any command (grub, parted, gparted, fdisk) my system cannot find it, although it is present on a disk, because the distribution has installed and works. But when I invoke any command, ...
ant's user avatar
  • 29
5 votes
1 answer
596 views

'which' is unable to find command even though it is definitely installed

I have recently installed the cryptsetup. I've double checked with sudo apt-get install cryptsetup. Reading package lists... Done Building dependency tree... Done Reading state information... Done ...
rful7877's user avatar
1 vote
1 answer
1k views

Why does Debian set a different PATH for root compared to other users? Why aren't `sbin` directories included for all users? [duplicate]

On a fresh install of Debian 11 "Bullseye" using the net installer, intended to be used as a server, root has the following PATH: root@debian:~# echo $PATH | tr : '\n' /usr/local/sbin /usr/...
Jivan Pal's user avatar
  • 113
2 votes
1 answer
7k views

ufw "command not found"- but as the root user!

My Debian 11 VPS is running now for about 2 weeks- and today I just wanted to analyse, why my traffic is ~70GiB (counted by bashtop). So somewhere in the net I read about nethogs, that this could help....
ubuntu4life's user avatar
0 votes
0 answers
609 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 ...
alx - recommends codidact's user avatar
1 vote
1 answer
481 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: ...
Jortstek's user avatar
  • 243
2 votes
0 answers
454 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/...
Kamil's user avatar
  • 1,491
8 votes
5 answers
71k views

bash: shutdown: command not found

I installed the latest version of Debian (netinstall). I have the problem, that the terminal does not know commands like shutdown, reboot, and so on. When I do whereis shutdown it tells me it is in /...
theerrormagnet's user avatar
3 votes
2 answers
2k views

Debian 10: Setting PATH variable inside .profile does not work

I'm currently running Debian 10 Xfce and I would like to update my PATH variable to include /opt/bin and ~/.local/bin. As per these - 1 2 answers, I put the following lines in my ~/.profile file: if [ ...
RogUE's user avatar
  • 207
0 votes
1 answer
340 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 &...
Walkertron's user avatar
2 votes
1 answer
4k views

LD_LIBRARY_PATH in Debian

I just followed the advice here: How to update glibc to 2.14 in CentOS 6.5 as an Android related program has been complaining about glibc-2.29 Everything seemed to compile and now in the /opt ...
cardamom's user avatar
  • 592
0 votes
1 answer
745 views

$PATH in a shell made by xterm not including a command location, but shell still able to execute it

I am setting up a Debian 10 with fluxbox window manager. One of the components I need is miniconda, I've installed everything from the initial bash (no desktop) and everything works fine. Miniconda ...
Mauricio Reis's user avatar
1 vote
2 answers
471 views

Correcting PATH after dist upgrade?

After a dist upgrade (Debian 9 to Debian 10) some things stopped working. For example, iwconfig, losetup, ifconfig, poweroff, pm-hibernate. These commands work if I type the full path like /sbin/...
Quora Feans's user avatar
  • 3,865
2 votes
1 answer
5k views

Mount Davfs Cannot evaluate path of mount point

I'm trying to mount a webdav on my debian distribution, but I have an error when I try to do so. The error is : ~# mount /mnt/dav >/sbin/mount.davfs: can't evaluate path of mount point (null) ...
J3ff3z's user avatar
  • 21
5 votes
2 answers
10k views

Broken my Debian install: 'sh' not found in PATH

I'm running a custom build of Debian buster/sid. I have broken a lot of things seemingly by mistakenly running apt-get dist-upgrade (I think that's what did it). So the desktop manager\desktop ...
Fearg's user avatar
  • 71
4 votes
2 answers
7k views

How to set a persistent $PATH variable for single or all users [duplicate]

This question has been asked before online but with conflicting answers so I am looking for clarification. What is the best way to add $PATH variables (below) in debian so that they are persitent for ...
Bat's user avatar
  • 53
0 votes
1 answer
69 views

How can i permanently change the PATH var of newly created user? [closed]

I assume this question has be asked many times.I just can't manage to change the PATH var permanently. This is what I do: nano ~/.profile export PATH=$PATH:/my/additional/path save changes I even ...
Milan's user avatar
  • 1
14 votes
3 answers
23k views

$HOME/bin dir is not on the $PATH

In my ~/.profile I have a last block which should load my personal bin/ directory like this: # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:...
user avatar
1 vote
2 answers
4k views

ctrl+x in vim text editor doesn't work as expected [closed]

I have Debian Jessie and vim terminal text editor. I try to autocomplete a file path in insert mode. When I type ctrl and x simultaneously no path completing is done but two chars are displayed: ^X ...
trzczy's user avatar
  • 650
0 votes
1 answer
105 views

Setting up datapath for a not-standard application (Quartus 13.0.1 on Debian 8.7.1)

I need to setup Quartus 13.0.1 on a Debian 8.7.1 system and I followed the guide at this wiki. After installing I need to setup a proper path and the wiki suggests to add the following code to ~/....
maja's user avatar
  • 285
2 votes
1 answer
7k views

I have the latest version of hping3 installed, but Bash says "command not found"

I'm trying to use the hping3 tool on Debian GNU/Linux (Jessie), and it doesn't want to play nice. When I run apt-get install hping3, it tells me that it's at the latest version already. When I run ...
Mars's user avatar
  • 73
1 vote
1 answer
4k views

Where does Debian 8.1 install adduser?

Code and outputs apt-cache search adduser adduser - add and remove users and groups $ sudo apt-get install adduser Reading package lists... Done Building dependency tree Reading state ...
Léo Léopold Hertz 준영's user avatar
0 votes
3 answers
3k views

Running remote script via ssh command

I have a script on remote Debian server machine and I want to run a command by invoking: ssh server "find.sh" My find.sh script is in in: /home/user/bin First of all, I ran ssh server "echo $PATH" ...
shadox's user avatar
  • 103
1 vote
1 answer
385 views

Bash cannot see PATH update

I am running Debian on a VM. I login to the GUI and go to Applications > Accessories > Terminal. # echo shell: /bin/bash I modified ENV_SUPATH, ENV_PATH inside of /etc/login.defs. I restarted ...
P.Brian.Mackey's user avatar
5 votes
1 answer
12k views

What do you do when you try to sudo and root's PATH has gone kerblooey?

I've got a feeling something bad just happened to this machine. faheem@bulldog:/usr/local/src/mercurial$ sudo dpkg -i mercurial_3.0-1_amd64.deb mercurial-common_3.0-1_all.deb dpkg: warning: '...
Faheem Mitha's user avatar
  • 35.4k
8 votes
3 answers
23k views

Add $HOME/bin to PATH for a single user in Debian Wheezy with LXDE

In Ubuntu, if $HOME/bin exists, it will be automagically added to PATH, but this doesn't happen in Debian. How do I permanently add it to PATH for a given user, but only for him, not for all users? I ...
sashoalm's user avatar
  • 5,870
2 votes
1 answer
600 views

Debian Wheezy 7.1 - can't launch Skype or Firefox [duplicate]

I've installed Skype by using dkpg and when I try to run it, this is what I get -bash: /usr/bin/skype: No such file or directory. Which is very strange since ls -l | grep skype shows this: -rwxr-xr-x ...
radical_edo's user avatar
2 votes
3 answers
374 views

Change PATH in Debian 7.1.0 for Java

I would like to change the PATH of my Debian 7.1.0 system to link to the Java version I want. If I enter in the terminal: java -version I get: java version "1.6.0_27" OpenJDK Runtime Environment (...
Mazzy's user avatar
  • 253
8 votes
2 answers
8k views

How to add a path to system $PATH for all users's non-login shell and login shell on debian

I installed some programs in /opt/my-program/bin, I wanted to add /opt/my-program/bin to system $PATH for all users's non-login shell and login shell. What should I do? Changing /etc/environment is ...
Yang Bo's user avatar
  • 255

15 30 50 per page