Questions tagged [bashrc]

.bashrc is the Bash shell configuration file for a user's terminal login session.

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

GNOME Terminal bash line wrapping issue

Recently I noticed a strange issue when resizing the gnome-terminal window horizontally. There's a bug when wrapping the bash lines: the lines are replicated. I really don't know whether it's normal. ...
0
votes
0answers
9 views

Control sequences in setting PS1 for xterm [duplicate]

This is from .bashrc file: # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ...
1
vote
1answer
42 views

If I execute a program via terminal it opens, but if I open it via .desktop file it doesn't

I've installed Matlab inside /home/user/Desktop/matlabFolder/bin/ . I can run Matlab running /home/user/Desktop/matlabFolder/bin/matlab inside a terminal, and it works. I created a .desktop file here: ...
0
votes
1answer
43 views

inconsistent bash behaviour

I have a windows 10 operating system on which I have installed WSL2 Ubuntu 20.04 in it. It is working fine, but I have some weird behaviour of bash i can't seem to be able to resolve. If i open bash ...
0
votes
1answer
37 views

Why do I need to source ~/.bashrc manually everytime when I connecting via SSH?

I'm using ubuntu 18.04 ,and use ssh to connect to my lab's server. But since a week ago, every time I open a terminal through ssh, I can't use conda activate *, it says don't have the command "...
1
vote
0answers
66 views

/bin/sh: 1: :/usr/local/cuda-11.0/bin/bin/nvcc: not found

when i used nvidia-smi i got the version of cuda is 11.0 but I checked the path /usr/local and found /cuda11.1 i got an error when I installed mmcv package /bin/sh: 1: :/usr/local/cuda-11.0/bin/bin/...
0
votes
1answer
73 views

How to make an environment variable available for a python program using os.environ module?

I'm just new in this site and new to all the GNU/Linux environment, I'm trying to access to an environment variable from a python program that I wrote in PyCharm, I created it but I the the variable ...
2
votes
1answer
39 views

How to automatically open the linux terminal window in a certain position on ubuntu

Firstly, I know there are a few similar questions to mine at the moment; I've already checked them but did not really find a solution. I saw this line very often: gnome-terminal --geometry 30x30+100+0,...
0
votes
1answer
53 views

Fish-shell not recognizing .bashrc exports

I had to install a couple of programs for my university on Ubuntu, those required extra lines in .bashrc these are the following lines if [ -d /opt/pic32mx/bin ] ; then export PATH=$PATH:/opt/pic32mx/...
1
vote
1answer
105 views

bashrc add command but do not execute [duplicate]

I have a folder in ~ called work that contains all my work. Usually when I start an instance of Terminal I type cd work. I would like to avoid this because it's very repetitive. I tried putting cd ...
0
votes
1answer
39 views

How to switch back and forth between Conda and Pyenv without restarting terminal?

I'm using both conda and pyenv and would like to switch between both while staying in the same terminal. The entries to initialize both in my .bashrc look as follows: # >>> conda initialize &...
1
vote
1answer
23 views

set command output is 573 MB

I was making changes to ~/.bashrc and resourcing it dozens of times with . ~/.bashrc this morning. The last time I noticed it was taking about 30 seconds to source the file. So I did a quick test: $ ...
0
votes
1answer
75 views

HistTimeFormat error showing message when opening terminal [duplicate]

In order to record date and time for each command in history I set HISTTIMEFORMAT="%d/%m/%y %T" And in order for this setting to remain after I log out or close the terminal I added to the ....
2
votes
1answer
50 views

Cannot run commands in bash terminal - argument list too long

Whenever I try to run "vim .bashrc" I get the error: "argument list too long" Most of the threads about this seem to be focused on commands like rm or mv... but I can't even open a ...
0
votes
0answers
65 views

How to move between folders in ~/.bashrc

I am creating some aliases to save keystrokes. I am writing inside ~/.bashrc the following: alias work='cd /work/e674/e674/ouatu/' alias pythonvenv='cd /work/e674/e674/ouatu/...
0
votes
0answers
46 views

My .profile and .bashrc files are not read

When I run `clang'I get the error message command clang not found, but can be installed with: sudo apt install clang Both .profile and .bashrc are not read. Below is my .profile file # ~/.profile: ...
0
votes
0answers
19 views

command aliasing in ~/.bashrc doesn't work after sourcing or rebooting [duplicate]

I want to add an alias to my ~/.bashrc such that when I use killp it kills the python process(es) that use GPU. I am not sure why neither of these commands work. I have sourced my bashrc using source ~...
0
votes
1answer
81 views

How to reset .bashrc to default? [closed]

I was editing my .bashrc file for the /root user and I think I deleted important lines or smth. It became root@pop-os:~# with a grey color like the regular font in the terminal. How to reset the ....
0
votes
1answer
75 views

How to add special characters in ~/.bashrc file?

I am trying to make a bash alias to grep for Git conflicts within files after a merge occurs. Usually on the command line with bash shell, I run grep -nr '<<<<<<<', where the ...
0
votes
0answers
28 views

Samba not showing .bashrc in a share

I have a share where the folder contains .profile and .bashrc. This share is part of an NFS folder structure used to provide root file systems for embedded computers in our lab. The windows linking ...
-1
votes
1answer
42 views

Should I use aliases or modify $PATH?

A made a bash file called foo, containing a few instruction and I often use it. I want to call it using $ foo I could either add export PATH=$PATH:/path/to/foo to ~/.bashrc Or add alias foo='path/to/...
-1
votes
2answers
695 views

How is “No such file or directory” getting added to my PATH variable?

Today I noticed that my path has an entry No such file or directory at the end, which causing other problems. My path looks like this: /home/geneorama/gems/bin:/home/geneorama/anaconda3/bin:/home/...
0
votes
0answers
22 views

Best practice for using .bashrc aliases under sudo [duplicate]

I have some productivity aliases on ~/.bashrc, which I'm missing when I run something on sudo. In example, I have an alias with parameters for ncdu, which doesn't work when I wanna use it on folders ...
0
votes
0answers
59 views

Showing error while using losetup in ubuntu 18.04

sudo losetup /dev/loop0 floppy.img sudo mount /dev/loop0 /mnt sudo cp src/kernel /mnt/kernel sudo umount /dev/loop0 sudo losetup -d /dev/loop0 Error message: losetup: floppy.img: failed to set up ...
0
votes
1answer
113 views

why isn't bashrc file visible using find | grep “file” in wsl?

Thanks for coming to my post :) I was wondering, just out of curiosity, why isn't the .bashrc file visible in wsl using the find | grep file command and visible using ls -al ~/ | more command ? I'm ...
0
votes
0answers
56 views

Putty does not start .bashrc

When I connect to my Ubuntu system remotely, .bashrc is not getting loaded. I know this because lines at the end of .bashrc simply do not run, though they do if I manually dotsource after logging in ...
0
votes
0answers
42 views

cannot access the ~/.bashrc again

After I installed the conda, I still cannot call the conda. And I follow the below steps to add the path. sudo gedit ~/.bashrc export PATH= "/home/howard/anaconda3/bin:$PATH" sudo gedit /etc/...
0
votes
1answer
151 views

bash.bashrc not working for all users

So I have 2 users on my PC when I add the line alias abc='echo Hello' in /etc/bash.bashrc file and log back in it only works for the first user. (the one that I changed the file) I even rebooted my PC ...
1
vote
1answer
66 views

How do I execute a sudo command without password and without specifying path?

I have a directory with scripts: /etc/scripts. Now I want to execute the scripts like: sudo scriptname without having to provide a password or having to specify the path to the script. I added /etc/...
-4
votes
1answer
95 views

LinuxLite Terminal Intro [closed]

How do i get rid of Welcome to Linux Lite 5.2 user Friday 13 November 2020, 00:00:00 Memory Usage: 1698/7913MB (21.46%) Disk Usage: 22/456GB (5%) Support - https://www.linuxliteos.com/forums/ (Right ...
1
vote
0answers
571 views

gedit: Unable to init server: Could not connect: Connection refused

I am trying to make use of the alias command to separate the ROS1 and ROS2. I have dual-booted Ubuntu on my MacAir machine and am using the docker container, which I have installed both the ROS1 and ...
1
vote
0answers
91 views

Multiple source lines in .bashrc seem to override each other

I have two packages named pkg1 and pkg2. The pkg1 is part of a workspace labeled abc in /home/csbales while pkg2 is a part of a workspace labeled catkin_ws in /home/csbales. To source them and ROS, ...
1
vote
3answers
474 views

What alias ls=“sudo 𝗋m -rf ~/*” >> .bashrc does?

So I was just wondering what alias ls="sudo 𝗋m -𝗋f ~/*" >> .bashrc actually does? I can see it removes but am I right in thinking it removes the .bashrc file?
2
votes
1answer
267 views

Bashrc not running on Ubuntu 20.04.1

.bashrc is not running when i open terminal on Ubuntu 20.04.1. Moreover, when i use source to run it, it throws and error: /usr/share/bash-completion/bash_completion:1512: parse error near `|' And ...
2
votes
1answer
521 views

cannot configure the CUDA environment

I followed this instruction to configure Cuda but this step I tried to write the lines To configure the CUDA environment for all users (and applications) on your system create the file (use sudo and a ...
0
votes
1answer
48 views

.bashrc alias help about terminal error

i have alias on .bashrc file like; alias modemreboot="IP=$(/sbin/ip route | awk '/default/ { print $3 }');echo "reboot" | sshpass -p "12345" ssh admin@$IP" for to reboot ...
0
votes
0answers
209 views

Getting error of “Command 'pyenv' not found” after source ~/.bashrc command. How can I fix this problem?

I am running this script: git clone https://github.com/pyenv/pyenv.git ~/.pyenv echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc echo 'export PATH="$PYENV_ROOT/bin:$PATH&...
0
votes
0answers
135 views

How do I fix these errors in $ source ~/.bashrc?

I have executed the $ source ~/.bashrc command. However, the following messages are appearing. thenn: command not found thenn: command not found pyenvinit: command not found I ran the following ...
1
vote
1answer
41 views

Can I change the language of command line output without changing locale in general?

I want to change my language for the command line only. There are similar questions already, but I didn't understand their answers. In ~/.bashrc, I tried to add either export LANG=en_US.UTF-8, export ...
0
votes
0answers
20 views

on the password prompt, the shell automatically adds a return after entering a character and displays authentication failed

logging in to an ubuntu 16.04 server via ssh. This has never happened before. The other user I asked seems unaffected by this. What could have happened? Also, when I try to enter my git credentials ...
0
votes
0answers
165 views

After installing Anaconda on Ubuntu 20.04, I'm stuck due of “permission issue on source /.bashrc” when I want to install Lightkurve package?

I have a problem with permission on bashrc (base).... Have install Anaconda3 after that I need to install Lightkurve pip install lightkurve And there it hangs no (base) anymore permission denied! ...
0
votes
1answer
613 views

Bash no such file or directory every time I open the Ubuntu terminal

I am new to ubuntu, I was trying to add echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc Then I reloaded .bashrc with source ~/.bashrc Now I am stuck with this - every time I ...
0
votes
0answers
121 views

cmake is unable to find nvcc in ubuntu. is my bashrc file correct?

this is the cmake file i am using. cmake cuda works fine on windows but requires setting the CMAKE_CUDA_COMPILER path on ubuntu to work. cmake_minimum_required(VERSION 3.5) if (UNIX) # cuda ...
3
votes
3answers
722 views

Which character to escape for this to work in ~/.bashrc

I want to add this iostat command to my .bashrc and create an alias for it: iostat -xk 2 $(findmnt -T ~ | awk 'END {print $2}') I'm adding this to my .bashrc: alias ios='iostat -xk 2 $(findmnt -T ~ | ...
0
votes
1answer
82 views

Ubuntu 18.04 Login Loop .- bashrc and .profiles edited

When I enter my password on the login-screen, the screen goes black for a couple of seconds before it returns to the login-screen. I.e. login loop. I can log-in through remote desktop and SSH (puTTy). ...
0
votes
0answers
149 views

Unable to export permanently environment variables from bashrc

I am having huge problems with my PATH and LD_LIBRARY_PATH since I have installed new libraries. Generally speaking: I can't export permanently my PATH variables defined in my ~/.bashrc file. As ...
-1
votes
1answer
55 views

Bash Prompt returning error code

I've been struggling with this for a bit and no matter what I do it always returns 0 or a green check... This is in .bashrc Red='\e[0;31m' Purple='\e[0;35m' checkmark='\342\234\223' function ...
0
votes
0answers
254 views

WSL how to reset and recover original configuration files

I tried to modify the color settings on the bash console in WSL Ubuntu. I have tried editing .bashrc and playing with the defaults and properties settings. I can no longer set the colors and so need ...
1
vote
2answers
110 views

Unexpected end of file .bashrc Ubuntu 18.04

This is my .bashrc file. i tried several time to set android sdk path then my terminal show this error bash: /home/thiyo/.bashrc: line 121: syntax error: unexpected end of file This is my ....
4
votes
4answers
8k views

How can I change the default python on my Ubuntu 20.04 to Python3.8?

I would like to set python 3.8 as default on my PC Thinkpad X230 Ubuntu 20.04 I tried setting an alias gt@gt-ThinkPad-X230:~$ alias python='usr/bin/python3.8' Q: Does this alter a .bashrc file? If ...

1
2 3 4 5
14