Questions tagged [bash]

Bash is the shell used in elementary OS command-line interface.

Filter by
Sorted by
Tagged with
1
vote
2answers
44 views

Dumb Noob question: Terminal is stuck in bash edit mode

I entered sudo bash and I can't get back to the normal command prompt mode. Exit just closes the terminal. A restart didn't help either. I would like to exit the bash mode so I don't mess anything ...
1
vote
1answer
32 views

Custom keyboard shortcut now activating after second press

I'm using ctrl + space as a custom shortcut to activate a TTS (text to speech) script that I wrote. I've been using this shortcut for about a week now with no problems, but recently the shortcut won'...
0
votes
1answer
69 views

Terminal starts with bash command

I am super new to linux environment and I am currently using Elementary OS. While trying to install Anaconda, it seems that I did something wrong. Now every time I open my terminal I am getting the ...
1
vote
2answers
133 views

What is the most simplest way to change (fix) the colors in the terminal (bash)

Just installed elementary os. in the terminal, ll gives a list of files and directories showing directories with lightblue color with green background - which is unlucky with respect to contrast, ...
0
votes
2answers
158 views

Problem when I try to boot Elementary OS

After I installed Elementary OS with dual boot (also have Win 10), whenever I try to boot Elementary a message appears saying NTFS5 : no eosldr and then this: I need some help!
2
votes
1answer
708 views

How to Share the environment Paths between Bash, fish and zsh shells

fish Shell doesn't recognize the node command as well as zsh too. But the bash does, So How Can I Share Environment Path between all of the Shells
0
votes
2answers
248 views

I need to run exec bash to accsess Jekyll or Ruby for example

I installed chruby, ruby-install from this tutorial and changed .bashrc acording to it. I can use Jekyll to build websites now, but only after I run exec $SHELL. Otherwise bash tells me the command ...
1
vote
1answer
662 views

No bash_profile and when I define it, it doesn't load

Elementary didn't come with a ~/.profile or ~/.bash_profile. I created the latter. I can manually enter source ~/.bash_profile, and it works. But when I start terminal cleanly, it doesn't ...
3
votes
1answer
221 views

Case sensitive tab completion

I'm new to Elementary (though not to Linux) and really enjoying it so far. One thing I find annoying though is the case insensitive tab completion in the terminal/shell - I can see how it might be ...
1
vote
1answer
424 views

.bashrc doesn't exist and doesn't work

There was no .bashrc or .bash_profile in my home folder. I created a new file and put inside my aliases. They don't work, terminal ignores everything. Why?
2
votes
2answers
653 views

bashrc error message on terminal

I get the following error message whenever I open my terminal: bash: /home/ajith/.bashrc: line 168: syntax error near unexpected token `-r' bash: /home/ajith/.bashrc: line 168: `esac[ -r /home/...
1
vote
1answer
375 views

Syntax error after running every command in tmux

I am getting the same error after executing every command in tmux and after running it, and this is annoying: -bash: PROMPT_COMMAND: line 0: syntax error near unexpected token `;;' -bash: ...
0
votes
2answers
441 views

How can I shorten my command line (bash/oh-my-zsh) prompt?

I have installed oh-my-zsh this morning and now command line is too long, it looks something like this: my-username@my-pc-name ~/Desktop/ I would like to change "my-username@my-pcname ~" part just ...
0
votes
1answer
83 views

Trying to run a simple shell script to install VirtualBox Guest Additions [closed]

Elementary is sorely lacking in ease of use beyond opening applications. Something as simple as running a shell script ought to work like it does in any other distro, but elementary fails at it. ...
1
vote
1answer
654 views

Can't execute shell scripts

I'm running elementary OS Freya on a HP Notebook. I downloaded the game "Faster than Light" and the launcher is a shellscript. Even with the +x permssion I get "permission denied" messages. I don't ...
7
votes
1answer
406 views

How can I make Ctrl+D not close the tab in Pantheon Terminal?

I've encountered something when using Pantheon Terminal. Normally, I expect Ctrl+D to delete the character at point if there is one, else if there aren't any characters on the line, send EOF (standard ...
0
votes
0answers
140 views

Odd characters added to redirect command

When I run a simple bash statement I get extra characters in the redirect of that statement. Example, if I run for i in 12345 abcd 7890; do echo $i ; done > test.txt and then do a cat -A test.txt ...
7
votes
2answers
3k views

How to switch to zsh?

I have liked the bash shell that ships default with elementary OS very much. But I would like to change to zsh that is a superset of bash. But I have not found a great guide to switch to zsh or how to ...
6
votes
3answers
1k views

Remove or ignore duplicate entries in terminal history

Is it possible to ignore or remove duplicate entries from the terminal history? Right now, when I click the up-arrow to go through my previous commands, there are lots of duplicates, or when I use ...
8
votes
2answers
1k views

How can I set up an alias for a command?

I want to set up a shorter name as an alias of this command: sudo -i pantheon-files $(pwd) For example I want to type sfoh (for sudo file open here) and it should run this command. How do I do this?...