-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
When I run a program from the console, e.g.
me@box:~$ firefox
I expect the console to log error messages (I think this is std out or std err?) and other items from the program, firefox in this case.
But today I notice that bash just opens the program and goes to a new prompt, e.g.
me@box:~$…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I was updating my .bash_profile, and unfortunetly I made a few updates and now I am getting:
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
-bash: tar: command…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I was updating my .bash_profile, and unfortunetly I made a few updates and now I am getting:
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
-bash: tar: command…
>>> More
-
as seen on Super User
- Search for 'Super User'
ps -e | grep bash
sample output from a linux machine:
1128 pts/14 00:00:00 bash
7491 pts/7 00:00:00 bash
12651 pts/14 00:00:00 bash
16145 pts/2 00:00:00 bash
sample output from a mac machine:
58352 ttys000 0:00.09 login -pfl username /bin/bash -c exec -la bash /bin/bash
58353 ttys000…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
First login process name seems to be set to "-bash", but if I subshell then it becomes "bash". for example:
root@nowere:~# echo $0
-bash
root@nowere:~# bash
root@nowere:~# echo $0
bash
-bash is causing some scripts to fail, such as . /usr/share/debconf/confmodule
exec /usr/share/debconf/frontend…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
Let's say I have a directory with a few files in it like this:
$ ls
file1 file2 file3
And I want to do some tab completion in bash:
$ cat file<tab>
file1 file2 file3
I remember seeing someone doing tab completion and the shell bolded the next parts, so in this case, it would bold the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I feel like I often name files in such a way that my computer constantly beeps while I program because the tab completion is ambiguous. Before doing a lot of Unix programming, I tended to name related files with the same prefix to indicate their relation. Now I must re-think my approach to folder…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I have recently installed ubuntu hardy and found that shell command completion with TAB doesn't work, the package 'bash-completion' is installed in my system. I guess it is related to dash being the default shell? Is there a way to use tab completion in dash? If there isn't a way then how can i change…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In bash, I believe it is possible to enable tab completion on the terminal for terms that are specific to the executable being invoked.
For example, given an executable "eat" with valid arguments {cake, carrot, banana}, typing 'eat car' should complete to 'eat carrot'.
I believe this is possible…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I would like to control which methods appear when a user uses tab-completion on a custom object in ipython - in particular, I want to hide functions that I have deprecated. I still want these methods to be callable, but I don't want users to see them and start using them if they are inspecting the…
>>> More