5
votes
2answers
733 views

What is this file: /usr/bin/[?

The name of the file is '[' . When I open it up in vi it looks like it's a copy of 'test'. It's owned by root.
1
vote
1answer
161 views

bash doesn't use all directories from $PATH to search for executable

I thought, if you call a command in bash, all of the directories set in $PATH would be searched for this command. (running as root) $ clamscan ./ -bash: /usr/bin/clamscan: No such file or directory ...
6
votes
2answers
6k views

What is my crontab -e local file path? I want to set it via BASH script

In my Ubuntu, my username is "meuser". When i do crontab -e, i can setup my rules. But instead of doing it with crontab -e, how can i do it directly to a file? Which file i cant modify?
0
votes
2answers
125 views

Bash - CP difficulties

cp -r /opt/lampp/htdocs/codeigniter_2.0.2 /opt/lampp/htdocs/test/ That command is making this: /opt/lampp/htdocs/test/codeigniter_2.0.2 and I need only the content of codeigniter_2.0.2 inside test. ...
4
votes
2answers
414 views

Upgrading Evolution from source

As with most people I presume I am running Evolution 2.32.2 inside 11.04 Natty and regardless how annoying the crashes are I prefer it to Thunderbird. Obviously as soon as 11.10 Oneiric is released ...
3
votes
1answer
1k views

Changing shell to zsh broke my terminal

I ran sudo chsh -s /bin/zsh to change my default shell to zsh. I then restarted my computer. When I turned it back on I get just $ as the prompt, so it doesn't look like I even get bash any more. ...
2
votes
1answer
402 views

Why isn't .profile sourced on login to LXDE?

I switched recently from GNOME to LXDE and since then my .profile file hasn't been sourced on login. I found out that my PATH variable doesn't include ~/bin anymore. However, my .profile file includes ...
2
votes
1answer
319 views

bash dirtrim produces strange results with ~/foo/bar/var directory

In some of my projects, I keep a var or a lib folder for runtime output and external libraries. To keep my prompt rather short, I have the export PROMPT_DIRTRIM=3 option in my .bashrc. This works ...
2
votes
4answers
197 views

Find and bash problems in recent Ubuntu versions

I've been having a problem the last six months or so when combining searches in bash. The exact example is related to Python programming but would apply to any kind of detection/manipulation. Suppose ...
3
votes
1answer
1k views

cannot insert backslash with bash, python, works fine with csh, idle

I have a strange problem with inserting backslashes (Ubuntu 10.10 and 11.04, the upgrade changed nothing). The key combination on my keyboard (Swedish Thinkpad T400) is AltGr + ?. However, this seems ...
18
votes
4answers
6k views

Bash auto complete for environment variables [closed]

The bash autocomplete feature does not seem to work with environment variables in 11.04. The current behavior is indicated below export SCRIPT=/home/user/script cd $SCRIPT/<tab> results in a ...