0
votes
0answers
19 views

Folder set up in linux for netbeans

Kind of new to linux. Learning PHP, I downloaded NetBeans IDE but having problems getting a new project to show up on left hand side with other projects. It keeps putting them in the source file of ...
0
votes
0answers
16 views

How to transverse to a long path using terminal easily using keyboard shortcuts?

Well i am a beginner to Linux environment and trying to learn some Linux commands . I find a difficulty to set my path to a particular path. When the path goes too big , I cannot type the whole path ...
0
votes
1answer
15 views

Relative Path in Chain of Process Call

I have a Java program which executes a bunch of python and shell scripts, which in turn will call some other python/shell scripts. If I use relative paths in any of the scripts, would the paths be ...
0
votes
1answer
30 views

modify PATH variable outside terminal

I want to add to my PATH variable a folder containing personal scripts (for example ~/myTools). As I've read on forums and tutorials, if I put the corresponding commands (add to PATH and export) to ...
0
votes
2answers
31 views

Setting java path in bashrc and cshrc

My system java's version is 1.6, for running Eclipse I need jre 1.7. I've already downloaded and unpacked the archive of java 1.7, but I cant change the default path from /usr/bin/java to my unpacked ...
1
vote
0answers
82 views

Is it possible to set my PATH variable in a desktop entry?

I've created a bin directory in $HOME with shell scripts that are each set up to load a Firefox profile; this way I can use a simple command like e.g. facebook to open a Firefox profile reserved for ...
0
votes
1answer
42 views

What is the sequence of files bash loads to set PATH variable

I want to understand the way PATH variable is set in Linux/Mac. What all files are loaded and in what sequence to set the PATH variable for BASH.
2
votes
1answer
47 views

How to hide a program from linux's tab-completion

I have an account on a shared machine, and cannot access /usr/bin, where there are many programs which I never use. I'd like tabbing to ignore many of these programs, for example I'd like ...
0
votes
1answer
597 views

aireplay-ng command not found

I just downloaded and installed Kali Linux on my MacBook Pro (dual boot) to mess around with penetration testing - I have experience with aircrack-ng, but it was a while ago (and I was at least ...
1
vote
2answers
53 views

where to put binaries so they are always in path and can be found easily

I am making quite some binaries, scripts etc that I want to install easily (using my own rpms). Since I want them accessible for everyone, my intuition would be to put them in /usr/bin; no need to ...
0
votes
1answer
149 views

SQLPLUS 32-bit Linux Pathing Issue

I am running linux 32 bit and installed Oracle 11g in it. I am trying to start sqlplus from command line but get the command not found error. I checked the environment variables and have ...
2
votes
3answers
614 views

How to delete a file from the file system in Linux when I don't have permission?

I re-installed ns2, but didn't delete a file from the filesystem with path: /usr/bin/ns So when I type on my terminal: which ns I get: /usr/bin/ns Instead of the path I have set which is: ...
0
votes
1answer
23 views

Should I put local/custom directories first or last on my path? [closed]

If I (a regular user) have, for example a ~/bin, with executables in it, should that go first or last on my PATH? why? Is there a standard/conventional approach under Linux? This question ...
1
vote
1answer
77 views

Are there any drawbacks when replacing Windows' functions with Cygwin's in the PATH?

Cygwin allows executing shell scripts on Windows and many more. Some functions conflict with the Windows Shell's functions. Does the following hint lead to any disadvantages when using Windows ...
0
votes
1answer
302 views

Sublime Text 3 and Anaconda distribution (not plugin) issue

I've been using Anaconda distribution(for NumPy,Pandas library). Recently I've tried to use Sublime Text 3. Problem is Sublime text cannot use my Anaconda installation. It is using the default python ...
3
votes
1answer
90 views

Different Path Based on Directory

I am developing an application using Play! Framework version 1.2.4. So I have downloaded this and added its bin/ folder to my path. However, I am getting ready to start another Play! Framework ...
1
vote
1answer
37 views

How to use /etc/alternatives effectively?

/etc/alternatives is intended to provide a facility to conveniently install and use multiple versions of a single software package (e.g. a compiler). Now /usr/bin/some-binary can be a symlink to ...
0
votes
2answers
60 views

How to hide the destination of a symbolic link

Say for instance I want to link the following two directories with a command like this: ln -s /home/usertwo testdir When I click ls, in the directory where this link is created, i will see ...
1
vote
2answers
29 views

Configure find not to even look in directories, if directory name maches 2012

I'm using find /home/myid/dir-with100directories/ -mmin -5 -not -path "*/2012/* to find all files, except not in directory 2012, but somehow it works really really slow. And my guess is that find ...
0
votes
1answer
200 views

Does Windows 8 not support path longer than a certian length such as 256 characters?

Does Windows 8 not support path longer than a certian length such as 256 characters? Such path is created under Linux, because Linux doesn't have such limitation. Thanks!
3
votes
1answer
60 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
2answers
85 views

How can I list permissions of every component in a file path?

Sometimes it is necessary to determine on which directory in a path access rights are limited. Here is an example: $ ls /sys/kernel/debug/usb/devices ls: cannot access /sys/kernel/debug/usb/devices: ...
0
votes
1answer
68 views

How to properly add preffered directory with duplicate binary to PATH?

I need to use prebuilt binaries to compile Android from source. The problem is, that seems like it's using the binaries I do not want it to use. As far as I understand gcc from the first directory in ...
0
votes
4answers
131 views

How to list folders in bash without the trailing /

I know ls -d */ lists all folder in current directory as dir1/ dir2/ dir3/. Is there the possibility in a bash script to show folders as dir1 dir2 dir3?
6
votes
0answers
207 views

How to make auto complete available for directories in cdpath for tcsh?

I just learned the trick for setting up cdpath in tcsh and it looks pretty useful. However seems auto-complete of sub-folder names doesn't come with it, is there any trick available on that? It'd be ...
0
votes
0answers
41 views

Removal of old version of java and install new java version

I have removed the older version of java installed (JDK 1.5) and have installed java 7. Now It shows both JDK versions in $PATH. I want to remove all installed java files and want to install new java ...
0
votes
3answers
307 views

How to store complete path using 7z on linux

I am looking for a simple way to backup files that have changed in the last 24 hours and creating a daily 7zip file ( I don't need permssion or users just files ). Using the following command I can ...
1
vote
1answer
90 views

How to change the path that comes with the output of which command?

When I which mex at the linux system it gives a path but I want to change this path to another one. How can I set this default path to another location ?
0
votes
3answers
166 views

Create alias or add path?

I've just installed a new program (let's call it foo) on my Linux machine. The program's files are in an unusual location that is not currently part of my $PATH. If I would like to be able to easily ...
2
votes
1answer
188 views

getting “No such file or directory” for a nonexistent command

I uninstalled manually mpi from my machine, but now when I make the command mpirun I get "-bash: /usr/local/bin/mpirun: No such file or directory" rather than "-bash: mpirun: command not found". ps. ...
2
votes
2answers
295 views

What does // and :: in the values of environment variables mean?

On my Linux machine some of the environment variables contain lists of directories. The directories are separated by :. But sometimes they are separated by ::. Is it just a mistake that should be ...
1
vote
1answer
133 views

zsh running a comand but not from the path

My zsh is doing something odd, it is running an executable that is not the first executable on my path. I have a wrapper script for ssh but the wrapper is not being invoked while the real ssh binary ...
0
votes
1answer
168 views

Syntax to create a file list

When I try to create a list of the files on a CD and to save it as a text file, something must be wrong with my syntax. Entering the command: gz@gcomputer:/media$ ls -aRl1 >> ...
3
votes
1answer
2k views

symbolic link to /usr/local/bin not running the program unless logged in as su

I'm trying to get eclipse 3.8 installed on Ubuntu 10.04. I've put the extracted files on: /opt I put a symbolic link in: /usr/local/bin ls -s /usr/local/bin: eclipse -> /opt/eclipse/eclipse ...
-1
votes
1answer
50 views

setting an appropriate PATH for one user

I'm new to linux, and am taking a course that requires me to do the following: Creating a login name Establishing appropriate group(s) Creating the home directory Creating the login shell ...
1
vote
1answer
86 views

Define extra `$PATH` for either Passenger or nginx

I have a server with nginx and Passenger serving a Ruby on Rails app. It uses Bundler. Somewhere in this stack, the $PATH gets set to /var/www/APPNAME/shared/bundle/ruby/1.8/bin/. This directory ...
0
votes
1answer
246 views

Executable not found although in PATH

My $PATH is set to a lot of directories including ~/bin and ~/target/bin I want to execute script.sh which is in ~/target/bin but I get the error bash: ~/bin/script.sh: No such file or directory ...
0
votes
0answers
194 views

Where is my PATH env. var being redefined?

Since a couple of days ago my Ubuntu 12.04 installation is presenting some strange behavior, due to auto update probably, as I've not messing with any config: 1 - The system default encoding changed ...
0
votes
1answer
289 views

pkg-config on cygwin will not find the gsl package

I am trying to use the Cygwin method for re-learning C using 21st Century C book by Ben Klemens. I've installed Cygwin and have been using apt-cyg to install the packages mentioned in the book. The ...
3
votes
1answer
3k views

How to lock device id's to port addresses?

I want to dedicate certain USB ports to certain devices. How can I do that? For example: I want ttyUSB0 to be my mouse and ttyUSB1 to be my keyboard (always). I want to be certain that the startup of ...
1
vote
1answer
92 views

script not found even though it's in PATH

Have a look at this terminal output... bjorn@jungleland:~$ cd bin bjorn@jungleland:~/bin$ ./first.sh Hello World bjorn@jungleland:~/bin$ cd .. bjorn@jungleland:~$ pwd /home/bjorn bjorn@jungleland:~$ ...
0
votes
2answers
28 views

OpenSSH connection doent display Path or Name

I recently re-installed a Ubuntu server (12.10) and I happened to have a minor issue with OpenSSH. Once I created some new Accounts and logged into those the terminal always replys with "$". ...
5
votes
3answers
3k views

What is the Unix PATH variable and how do I add to it?

Many programming tutorials ask users to add something to their PATH but don't explain what it is. The existing resources that explain the PATH to users new to the command line are not very good. ...
1
vote
0answers
390 views

Faking a Linux environment without chroot

For a university project I want to test a C++11 program on a 32-core machine. Unfortunately the machine has Ubuntu 12.04 with GCC 4.6 installed (we need GCC 4.7 because of some C++11 threading ...
0
votes
2answers
130 views

How to get ~/foo from /home/user1/foo?

The Bash prompt supports the \w escape sequence, documented as \w the current working directory, with $HOME abbreviated with a tilde (uses the value of the PROMPT_DIRTRIM variable) Is ...
1
vote
2answers
282 views

Same absolute path on linux and windows 7

I have windows 7 and ubuntu on dual-boot and I'm sharing the same firefox profile folder on both OSs, which is located on the windows partition (which is mounted on ubuntu startup automaticaly). My ...
0
votes
1answer
230 views

x-terminal-emulator not getting path

I have a script that uses x-terminal-emulator to launch a different script in a new terminal window. I am using ubuntu 12.04 and a colleague of mine is using ubuntu 12.10 and this is not working for ...
1
vote
2answers
295 views

Add path from remote ssh server

I have a remote SSH server that holds the exe file (at /usr/bin/linux). I want to run the exe files from the server on images on my local hosts, i.e. add me@remote:usr/bin/linux to my local path. How ...
1
vote
2answers
481 views

is there an 'upwards' find?

I found I asked this question on the wrong stackexchange site. To find files starting from a certain path, I can use find <path> .... If I want to find 'upwards', i.e. in the parent directory, ...
1
vote
2answers
2k views

separate file and path in bash?

How can I separate the path and file elements in a bash loop like this? for file in `find /my/path -name "*.ext"` do #(path,onlyfile) = separate_path_and_file $file #dosomethingwith $onlyfile ...