3
votes
1answer
50 views

Expand path under cursor in VIM

I often find myself needing to lookup what the exact path to a file is when programming with VIM (in insert mode, like giving an image path inside my source code), even though I know what the path ...
1
vote
1answer
1k views

Where to store bash scripts that all users may execute on Debian?

I have many bash scripts on my server, that all users may use. but it seems the location /usr/local/sbin is not the best place. I don't want to use the home directory of the users, cause ...
0
votes
2answers
1k views

Add /usr/local/sbin to the PATH of a user [duplicate]

if I type echo $PATH I only get /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games how can I add /usr/local/sbin to the path, so it is already there the next time? (I use debian ...
2
votes
3answers
238 views

Where to put utility scripts in Debian but not in the PATH?

I have a web application with a database back-end. I have some utility scripts that are used to initialize the database. I want to include these scripts in the Debian package, but they are dangerous ...
2
votes
3answers
5k views

Trouble setting up PATH for Java on Debian

I am trying to get Oracle Java 7 update 3 working correctly on Debian 6. I have downloaded and set up the files in /usr/java/jre1.7.0_03. I have also set the following two lines at the end of ...
2
votes
1answer
697 views

Bash autocomplete paths “through” environmental variables

I used to be able to type cd $home/p hit the tab key and the command would change to cd /home/phill Now it doesn't. When cd'ing to a directory based on an environmental variable, I'm "flying ...
1
vote
1answer
2k views

How to know Debian package install location in postinst/prerm?

The maintainer scripts of Debian package (debian/postinst, debian/prerm, etc.) can optionally have the old/new-version argument, but there's no install dest dir argument. (See Debian Policy Manual) ...