Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
153 views

color variable does not work with PS1 assignment in bashrc file

below is my current PS string in .bashrc PS1='${debian_chroot:+($debian_chroot)}\[\033[00;37m\]\u@\h\[\033[01;32m\]:\[\033[01;34m\]\w\[\033[01;31m\] $(parse_git_branch)\[\033[00m\]\$ which works fine ...
xkeshav's user avatar
  • 645
0 votes
1 answer
220 views

How to fix unresponsive Terminal

My Terminal does Not respond. I can Open it but when I try to type something, it gets ignored. I cant See the letters on the Terminal - They are Not hidden. I tried 2 other Terminals, Same Problem. I ...
Katharina J's user avatar
8 votes
2 answers
1k views

Should I put functions in .bashrc, .bash_aliases or .profile

I have read this thread about where to put aliases. Now, let's suppose that my custom command is quite elaborate (takes arguments in input, is composed of several commands run one after the other, I ...
Tms91's user avatar
  • 425
2 votes
1 answer
619 views

How do I avoid having to manually source ~/.profile or ~/.bashrc to get "LD_LIBRARY_PATH" to work?

I realized that I need to manually source ~/.bashrc file or to manually source .profile file to make the settings specified in .bashrc file effective. These are some additions to complete ~/.bashrc ...
Raphael10's user avatar
  • 183
0 votes
1 answer
588 views

command not found: shopt ON WSL Ubuntu 22.04

I inserted couple of env. variables such as: export WOS_MONGODB_URI='mongodb://localhost:27017/...' export WOS_AWS_REGION='us-east-2' export WOS_AWS_ENV='dev23' export WOS_SEED_MODE='test' export ...
Damika's user avatar
  • 101
1 vote
0 answers
2k views

How to reload .bashrc settings without logging out and back in again?

I created a script that add's the below commands to the .bashrc file. The purpose is I need to store the commands entered by the user into the .bash_history. The below commands are adding to .bashrc ...
SIVA KUMAR KALLURI's user avatar
0 votes
1 answer
176 views

bash: export: `LS_COLORS#': not a valid identifier

I'm getting the following error in my terminal: bash: export: `LS_COLORS#': not a valid identifier My ~/.bashrc file looks like this: # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/...
MANIKANDAN S's user avatar
0 votes
1 answer
236 views

How to add code to .bashrc without causing errors?

I'm learning how to passthrough my NIC to my KVM. This guide says to add the following code to the file ~/.bashrc #!/bin/bash # change the 999 if needed shopt -s nullglob for d in /sys/kernel/...
user1416486's user avatar
0 votes
0 answers
395 views

Running OpenFoam command: paraFoam -> Error 420: paraView: not found

I have lately installed OpenFoam v.2212.0 on UBUNTU 22.04.0. All the other OpenFoam commands work fine for me, but as soon as I type "paraFoam", I get the following error: Invalid $...
Lt Ark Angel's user avatar
0 votes
1 answer
65 views

How do I get the terminal to stop outputting additional text from basic bash commands?

I am not sure what exactly is the name of this supplemental text that pops up whenever I am using the terminal, but it shows up when I am running commands. Previously it was not there. I made some ...
Daniel's user avatar
  • 1
0 votes
0 answers
36 views

sudo apt update Received 11 errors. Don’t know what to do [duplicate]

When I wrote sudo apt update I received 11 different errors. I took a screenshot could someone help me fix this. I’m extremely new to Linux bash commands. I just took a 5hour class on the “50 most ...
Handyman-Girl's user avatar
0 votes
0 answers
173 views

Unbuntu is not showing effects of the command line {eval "$(starship init bash)"} in .bashrc

OS: Windows 10 Terminal: Unbuntu, git bash I tried to load starship shell prompt in ubuntu which is opened from my wezterm terminal simulator. By running echo $0, the terminal returns -bash. Thus I ...
HugoWang's user avatar
2 votes
1 answer
702 views

how to add alias to bashrc and load content with sudo?

I need to run my script with sudo, because it includes commands for installing programs with apt. So I do this: sudo ./myscript.sh With content: #!/bin/bash # add alias .bashrc (work) echo "...
acgbox's user avatar
  • 2,210
1 vote
1 answer
82 views

How to modify the path bash: /home/joydev/home/joydev/root/root-6.28.04-install/bin/thisroot.sh: No such file or directory

could you please clarify how to solve the following problem? Whenever I am opening the terminal I am getting following message: bash: /home/joydev/home/joydev/root/root-6.28.04-install/bin/thisroot.sh:...
Joydev's user avatar
  • 11
-1 votes
2 answers
460 views

Accidentally changed PATH variable and I cant change it back, or use vim etc..help

I know there are many questions like this, but I unfortunately dont know enough about Ubuntu to be able to apply it to my situation. I have all my stuff saved for work on a remote machine, that i ...
Learn4life's user avatar
1 vote
0 answers
35 views

Ubuntu/opt directory permission denied issue [duplicate]

Ubuntu Newbie here! I am currently trying to install OpenFoam 10 in my machine, and need to edit the bashrc file located in Ubuntu/opt/openfoam/etc. Anytime I try to manually open the file and edit it ...
MigWeld-o's user avatar
0 votes
2 answers
382 views

Opening gnome-terminal and running a command that uses environmental variables from .bashrc

I am making a .sh file that would be run by Right click -> Run as program by non-power-users. It should open a terminal window and run a docker run command, that uses some environmental variables. ...
Rolf's user avatar
  • 103
0 votes
0 answers
52 views

How can I add a directory to my path and add a command to .bashrc? I am working with Supernova-2.1.1 of 10X Genomics

I would like to add a directory to my path, in my IBM server running Ubuntu 22.04. I would like to install the genome assembly software, SuperNova-2.1.1 by 10x genomics. In order to start using their ...
VIJITH KUMAR's user avatar
0 votes
2 answers
218 views

Alias path not found on Ubuntu

I installed kind from kubeflow kind and save it under my $HOME/kubeflow/kind To run kind from any path, I create an alias in my ~/.bashrc as following: alias kind="./$HOME/kubeflow/kind" ...
BetterEnglish's user avatar
0 votes
0 answers
105 views

adding permanent custom environment path variable

i am trying to create a permanent path variable following this tutorial: https://youtu.be/JLjF75b-vMI?t=126 everything worked fine and i was able to cd to my newly added variable's directory, however ...
manodzit's user avatar
0 votes
0 answers
104 views

When im trying to open terminal the terminal is totally blank there is nit even a durectory or $ appearing while opening the terminal?

When im trying to open terminal the terminal is totally blank there is nit even a durectory or $ appearing while opening the terminal? What should i do now? Please guide me step by step
Manohar Reddy's user avatar
1 vote
1 answer
794 views

Can't Create a Permanent Alias In Fish Shell

I'm trying to create a permanent alias. I've created one long ago, but I don't remember if I did anything differently than what I'm doing now. Be as it may, it isn't working! I start by opening the ...
Rich Hard Fine Man's user avatar
1 vote
2 answers
4k views

"Command not found" errors from terminal, even though the software is installed

I know ubuntu comes with a gnome-terminal. A few days ago, I started to face a new issue that I can't describe. I use the vscode code editor in my daily life. Many commands, like npm,pnpm, yarn, rust -...
officialrajdeepsingh's user avatar
0 votes
1 answer
264 views

bash: /home/vishal/.bashrc: Errors when opening terminal

Everytime I open my terminal , this message pops up. Please tell how to permanently delete this from the terminal? bash: export: `=': not a valid identifier bash: export: `/home/vishal/LLVM/llvm-...
Vishal Sharma's user avatar
0 votes
0 answers
255 views

How can I emulate a sudo shell with the respective environment variables set when using "sudo su -c "<command>"?

I would like to run a sudo command in one line, but also have this command be run as a sudo user with all the respective environment variables instantiated (essentially run exec zsh before anything). ...
Yes's user avatar
  • 101
1 vote
1 answer
123 views

problem bashrc file colored terminal

I have a problem with my terminal in Ubuntu server 20.04. I would like to color the syntax in my terminal, but after I restart the server, it's back to the normal uncolored syntax. I edited .bashrc ...
Dany's user avatar
  • 79
0 votes
1 answer
107 views

User shiny doesn't seem to "see" .bashrc file

I'm running Ubuntu 20 on a Digital Ocean droplet. I use R and RStudio's Shiny-Server. When I use a Terminal logged in as user:me the prompt is customized and the cursor up error brings up the previous ...
ixodid's user avatar
  • 113
1 vote
1 answer
580 views

Terminal Appearance Problem

linux noob here. I'm configuring the appearance my terminal via some commands like: vi $HOME/.bashrc then add do this command export PS1="\e[0;32m[\u@\h \W]$ \e[m " and now my terminal ...
BlackSlime's user avatar
0 votes
1 answer
200 views

Messed up bash prompt after printf

This annoying bug bothered me. When I type printf foo or echo -n foo, the bash prompt next becomes glitchy when I navigate through previous commands. Here is a snippet of my .bashrc ...
box cpm's user avatar
  • 21
7 votes
2 answers
2k views

Theres empty space between cursor and username in konsole Kubuntu 21.10

This is a brand new installation of Kubuntu 21.10 and I cannot understand why there is space between the cursor and my PC's name when I open Konsole: I have tried researching for a solution and I ...
krillavilla's user avatar
-1 votes
1 answer
2k views

Terminal auto-completion does not work

The auto-completion in the terminal doesn't work that means that nothing happens. Ubuntu version is 20.04 LTS a) echo $SHELL is /bin/bash b) I reinstalled the bash completion package with sudo apt-get ...
raul999's user avatar
1 vote
1 answer
438 views

function definition not working in .bashrc

submit () { kaggle c submit -f $@ -m MSG h-and-m-personalized-fashion-recommendations; } I want to use the above function as shorthand for submitting files to kaggle competitions by typing submit ...
lam206's user avatar
  • 37
-1 votes
2 answers
6k views

Bash errors: Unexpected EOF while looking for matching, Syntax error: Unexpected end of file

I ran it through ShellCheck but could not understand what it wanted me to change,so here I am. On opening terminal: bash: /home/helpabrother/.bashrc: line 118: unexpected EOF while looking for ...
ShlickMitch's user avatar
2 votes
1 answer
188 views

bash: `set +m` option does not work when placed in the .bashrc file

If I enter the command: set +m at the end of the .bashrc file, when I run the command: echo $- the option m is missing as it should be, but... If I enter the command: { sync & } 2> /dev/null ...
Mario Palumbo's user avatar
2 votes
3 answers
2k views

Terminal won't display colors for non-root users

When I'm logged in as root, I can display colors, but not when I switch to another user. The command ls --color=auto only displays colors once when logged as normal user. I searched a lot and did a ...
Rayan Araujo's user avatar
0 votes
2 answers
3k views

how to create input read with newline in bash?

I want to ask I have a problem, how do I get input in bash to do newlines? read -p "List Name: " list cat <<EOF >names.txt List Names: $list EOF i can not do a new line or use ...
Joe Cola's user avatar
  • 353
0 votes
0 answers
65 views

Syntax error when I use Terminal caused by tor proxy

I get this error when I open a terminal: Bash: /home/admin/.bashrc: line 118: syntax error: unexpected end of file This started after I manually edited the .bashrc file to remove the tor proxy.
rhinocerosmorris's user avatar
2 votes
1 answer
1k views

how to define a variable in .bashrc so i can use it as path

Hi ( sorry for my bad English ) I just learned how to permanently set a key for a specific value using alias: .bashrc alias please='sudo' alias go='cd' alias destroy='rm -rf' And it works perfectly ...
YoloWex's user avatar
  • 330
0 votes
0 answers
733 views

~/.bashrc.swp file corrupt

When I opened vi ~/.bashrc, it gives the below error: how to fix it? E325: ATTENTION Found a swap file by the name "~/.bashrc.swp" owned by: imren dated: Thu Dec 23 00:38:57 ...
haruki55's user avatar
3 votes
1 answer
2k views

How to run a command after a delay at login with .bashrc

I'm trying to run a command line on .bashrc after 20 seconds so I'm doing sleep 20 && cp text1.txt text2.txt But the system will not start until the 20 seconds go by, and then it will start. ...
lorikthegoat's user avatar
3 votes
3 answers
841 views

Risks of replacing .bashrc file from one computer to another

I have 2 Asus Zenbook laptops running Ubuntu 20.04.3LTS (my current laptop and I kept my old laptop as an emergency backup system as I can't be without a laptop). I very rarely use the old one, but I ...
Will's user avatar
  • 2,341
3 votes
1 answer
205 views

Can not call defined funtions from .bashrc

I have a function in .bashrc like this: function gs () { cmm="$1" if test -z "$cmm" then cmm="This is Manh Cuong's commit 🌻." fi git add . && ...
Claire Duong's user avatar
1 vote
0 answers
1k views

When I edit .bashrc in Ubuntu 20.04, it does not ask me to save anymore

I'm not sure what happened but when I sudo nano ~/.bashrc to add a couple of exports #spotify export SPOTIFY_CLIENT_ID='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' export SPOTIFY_CLIENT_SECRET='...
mLstudent33's user avatar
0 votes
1 answer
2k views

Why is my alias from .bashrc not working?

I've written a line in .bashrc alias untar='sudo tar –xvzf' Now, when I use "untar" in bash I get the error: untar filename.tar.gz tar: invalid option -- '�' Try 'tar --help' or 'tar --...
Mark Rensen's user avatar
0 votes
1 answer
783 views

How to create calculator with bash?

How to create calculator with bash ? example read -p "calculator count: " calc echo '$((calc))' | bc i input 2+2 output (standard_in) 1: illegal character: $ how to fix ? I just ...
Joe Cola's user avatar
  • 353
2 votes
4 answers
5k views

How I can run application from anywhere in the terminal without being in the full path

I have an application that I can run while I am in the file location as the below: -$ cd home/myApps/app -$ ./run.sh I want to call the run.sh from anywhere in my terminal without being in the full ...
MindC3ll's user avatar
0 votes
0 answers
52 views

Not able to install any software on Ubuntu

I tried to install MatLAB in the directory /usr/local/MATLAB/R2018a/bin and add this path to .bashrc. After this, I was able to launch Matlab by just typing Matlab in bash. But now, when I try to ...
Kashif Ghafoor's user avatar
0 votes
0 answers
27 views

I just installed Quixel and Nuke, how can I create an alias for them in Ubuntu? [duplicate]

I just installed Quixel Bridge and Nuke. They are not found in the application list so I have no way to drag them to desktop favorite. Nor did they like Google Chrome that could be started in terminal ...
Wendy's user avatar
  • 1
0 votes
2 answers
2k views

proxy is only working with GUI but not when I set through terminal with ~/.bashrc

I have read a lot of guides about setting a proxy for ubuntu. I can do it with the GUI in the network settings and it automatically starts using the proxy I specified and when I open firefox or chrome ...
Camilo's user avatar
  • 101
0 votes
1 answer
223 views

Hava alias shortcut available in new terminal session

The output of command $ alias will not display for me in Ubuntu 18.04. as I research here This is only available for my current terminal session, and if I open a new terminal session, the Alias ...
aliza izton's user avatar

1
2 3 4 5
7