The tag has no usage guidance.

learn more… | top users | synonyms

21
votes
4answers
35k views

Why doesn't my ~/.bash_profile work?

I'm using Linux Mint. My login shell (cat /etc/passwd | grep myUserName) is bash. After I start my graphical desktop environment and run terminal emulator from it, I could see that .bash_profile is ...
0
votes
1answer
25 views

Functions in ~/.bash_profile not found in an interactive shell [duplicate]

I thought that whatever lies in .bash_profile(or .profile) which is sourced in a login-shell, is available in an interactive shell. My goal is to have available a list of functions, either in a login ...
0
votes
2answers
87 views

How to work with tabs in new gnome-terminal?

After going Debian 8 (with Kali 2) I can no longer use my pre-defined tabs because apparently some genius decided that gnome-terminal no longer needs that kind of functionality. I really need my tabs ...
-1
votes
1answer
25 views

What happened to mate-terminal?

I did apt-get dist-upgrade to my Kali (rolling) and suddenly mate-terminal (1.14.0-1) went mad. No more transparent backgrounds but what really made me rip my shorts was the seeming inability to bring ...
2
votes
1answer
27 views

How to automatically load tmux at login, but not if already inside tmux?

I'm a linux noob and recently started using tmux. I found I can attach-or-create a tmux session by using: tmux new-session -A -s main I was hoping to put this into .profile so that I automatically ...
1
vote
1answer
54 views

Initilization script runs twice on SSH

Running Ubuntu 12.04. I have a script that sets up the environment, its run by /etc/bash.bashrc. (It may be set to run by other shell profiles inits, I didn't actually set it up myself) When I Ctr+...
0
votes
1answer
58 views

login loop after editing /etc/profile and /etc/login.defs

I am relatively new to Linux/Unix and I have a Debian Jessie 8 distribution installed in my laptop. I tried to install tex-live following the instructions in this TeX.stackexchange.com post At some ...
26
votes
4answers
18k views

how can I use bash as my login shell when my sysadmin refuses to let me change it

The unix sysadmin where I'm working is reluctant to give me access to change my login shell from ksh to bash. He has given various excuses, the funniest being that since they write all their scripts ...
7
votes
1answer
6k views

What is the difference between .profile and .bash_profile and why don't I have a .profile file on my system?

So I'm pretty new to Linux and recently installed Fedora 19 on my netbook. I want to have a deeper understanding of Linux and the CLI so I'm now reading Learn Linux: The Hard Way. In exercise 3 the ...
0
votes
1answer
20 views

Add a second authentication to user log in

trap '' 2 code=`oathtool --base32 --totp "xxxxxxxxxxxx"` echo -n Enter Code: read -s password echo "" if [ "$password" == "$code" ]; then echo "You are allowed in" else exit fi trap ...
0
votes
1answer
45 views

Custom scripts under /etc/profile.d and /etc/init.d - rhel6 and rhel7

I need to start my script during boot time. I have read that the scripts under /etc/init.d & /etc/profile.d are sourced during system startup. How different are these directories? Other than the ...
1
vote
1answer
79 views

How to resolve <not counted> problem in perf tool?

perf stat -d ./sample.out Output is: Performance counter stats for './sample.out': 0.586266 task-clock (msec) # 0.007 CPUs utilized 2 context-...
1
vote
1answer
668 views

Editing the .profile file to access

I am trying to source my .profile file to easily access a directory of javatools. The bash code below seems like it should work but it does not. Any help troubleshooting this script would be very much ...
1
vote
0answers
14 views

RH software collections enable for command run with sudo

We are using RH software collections for python34 and have the following in /etc/profile.d/scl_enable_python34.sh source scl_source enable rh-python34 This works perfectly for interactive users. ...
70
votes
4answers
9k views

Is there a “.bashrc” equivalent file read by all shells?

Is ~/.bashrc the only place to specify user specific environment variables, aliases, modifications to PATH variable, etc? I ask because it seems that ~/.bashrc seems to be bash-only, but other ...
1
vote
1answer
44 views

Where are the places the PROMPT_COMMAND variable could be set?

I installed drush and as part of the installation it makes some changes to the PROMPT ... # Optional. Enrich the bash startup file with completion and aliases. drush init ... Whenever I execute an ...
1
vote
0answers
41 views

How to I force Terminator to reload configuration on the fly?

I use Terminator as a terminal emulator and I like it a lot, I would just like to do one thing and I haven't been able to find out how to do it. So you know how I can right-click, go to preferences, ...
0
votes
1answer
54 views

Setting up aliases with interactive ssh session [duplicate]

I need to keep ssh'ing into many-different Linux boxes (Ubuntu mostly) and every time I miss my basic aliases. Is there a way to setup aliases etc while opening an interactive ssh a machine without ...
1
vote
1answer
29 views

Creating a symlink inside profile.d doesn't work. Workaround?

I have created a special folder (/usr/manual) for everything I install manually. This way when I reinstall the OS or change my laptop all I have to do is move /home and /usr/manual/ and reinstall the ...
0
votes
1answer
31 views

Make exported path effective immediately?

I'm using a script to export a path like this: echo "export MONO_PATH=~/turbo/" >> ~/.profile; So from now on, the path will be available whenever the user logs in. However, I want to the ...
1
vote
1answer
39 views

Xfce initialization script

In an attempt to disable the bell in Xfce, I have created a ~/.config/xfce4/xinitrc with this content: #!/bin/sh # Disable bell xset b off But now, the system bounces back to the login screen at ...
-4
votes
1answer
60 views

linux error flag in permission denied thing [closed]

Even after running the command sudo chmod -R 777 /home, I cannot fix the error: Sorry, user kumarht1 is not allowed to execute '/bin/chmod -R 777 /kumarht1' as root on host.com. How should I fix ...
0
votes
1answer
276 views

How to fix a corrupt .profile file for sudo user

My knowledge on unix is very less. I updated .profile file for sudo user but some path was incorrect in that file. When I am trying to reconnect as a sudo user it does not recognize any commands and ...
1
vote
3answers
3k views

Why doesn't alias work in AIX (Korn shell, .profile)?

I have these files in my home directory: drwxr-xr-x 3 meuser staff 256 Oct 12 13:11 . drwxr-xr-x 102 bin bin 4096 Sep 30 12:28 .. -rw------- 1 meuser staff ...
3
votes
1answer
24 views

Can custom locale spec live under ~/?

I understand that one can put custom locale specs under a system-wide directory (e.g. /usr/share/i18n/locales), but is there a way to configure one's locale to use a spec that lives under ~/? ...
2
votes
1answer
876 views

Where are gnome-terminal profiles stored on a linux distribution?

Of the distributions of Linux I have used (Red Hat, Ubuntu, CentOS, others) which utilize gnome-termial you are able to set different terminal profiles via a drop down menu located in the terminal ...
3
votes
2answers
161 views

Why might one add ~/.profile to ~/.bash_profile?

When installing RVM the one gets the following message: * WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/home/dotancohen/.bash_profile': ...
3
votes
1answer
102 views

Thunderbird / Firefox profile missing or inaccessible

Out of sudden my Thunderbird and Firefox wont run because of this message: Your Thunderbird profile cannot be loaded. It may be missing or inaccessible. Your Firefox profile cannot be loaded. It may ...
1
vote
0answers
31 views

'Chain' shells' profile and runcom files?

While setting zsh up, I found a post stating that to keep a .zshrc as clean and backwards compatible as possible, one can 'chain' the shells' configuration files. If I recall, it consists more or less ...
2
votes
2answers
45 views

several virtual profiles for the same user

Many times there are several "identities" which one user uses: for work, open-source, academia etc., all require different ssh keys, editor configurations, git configs etc. I was wondering if there ...
22
votes
5answers
19k views

Making zsh default shell without root access

I am using my school's computers and would like to use zsh instead of bash. I'd like to make it default, but I cannot run a command such as $ chsh -s $(which zsh) because I don't have admin privileges....
18
votes
4answers
26k views

Difference between ~/.profile and ~/.bash_profile

What is the difference between ~/.profile and ~/.bash_profile?
1
vote
1answer
182 views

.profile is written in shell script — can I instead make my system understand that I want it to execute a Python script instead?

I get Python. I don't get shell script. I could learn shell script, but I would rather not if I can use Python in its place. A good place for me to start would be the .profile script. Currently, for ...
2
votes
1answer
66 views

Share environment variables with www-data

I have a set of environment variables, which is created with a shell script config called from my ~/.bashrc. Having a new user www-data running a local webserver (with lighttpd), I need it to benefit ...
3
votes
2answers
397 views

what is the command [ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” doing

I found the following command in the .profile file while installing node through nvm: [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" I want to know what is the the purpose of [] and &&...
1
vote
1answer
110 views

SSH login keeps kicking me out

I am on Centos 6.6 and recently updated my server using yum, it updated a bunch of things and everything seemed fine, but I was also trying to update Ruby RVM and Node.js and NPM (Node Package Manager)...
3
votes
1answer
92 views

recreate shell invocation

Does a running shell have a mechanism to recreate its invocation? I sometimes make changes to variables or my profile and have to manually source the startup files to make things run again, for ...
6
votes
2answers
2k views

What desktop environment does startx run, and how can I change it?

From many docs, I read that startx is starting LXDE in Raspbian OS. I am a little bit confused. Will always startx run LXDE GUI? Also I have seen example with using startlxde command. How is that ...
10
votes
3answers
9k views

How can I change what's displayed at a login shell?

I'm getting more familiar with tweaking the way things look in a shell via the prompt (.bashrc), but I'm now trying to change the initial stuff displayed when I first log in. On my EC2 instance, this ...
1
vote
1answer
108 views

Is changing background color in unix through .profile is possible?

I am using Unix and accessing it through putty. I have saved IP address, color, font and other attributes in putty. But whenever I am sitting on other PC then I have to again change all this ...
1
vote
2answers
62 views

Force a specific button release

I've looked at this post, but it's not quite what I was looking for. Command for forcing a pointer ungrab (captured mouse release) I want to fake the "Easy-Shift" functionality of my "Roccat XTD" on ...
0
votes
3answers
944 views

Checking if line in file exists

I have a bash script which asks a user for the number of CPU cores and saves it to variable named $cores. Now I want to add this variable to .bashrc, so I ask user how many CPU cores he has and then ...
1
vote
2answers
78 views

unable to login via tty{1-6} as a normal user

I am unable to login via tty{1-6} as a normal user. I can only login as root. When logged in with a normal user, the computer displays the greeting message from /etc/motd and logs me out immediately....
2
votes
4answers
454 views

How to hold terminal open (excepting gnome-terminal)?

I find useful the gnome-terminal feature of editing (and creating) profiles with the option of holding the terminal open after the command exists. (I like to use context menu file manager to run ...
1
vote
1answer
153 views

configuring setxkbmap for a single user/debugging xkbmap changes

I'm trying to do something similar to what this user asked, storing my keyboard layout. My first thought was to use .bashrc, but I turned to .bash_profile after realizing that I only need it set once (...
0
votes
4answers
258 views

Unable to add folder to PATH in .profile file

The following is my .profile file: # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # see /usr/...
1
vote
0answers
313 views

Two users with the same 'home' folder but different '.profiles'

I would like to have at least two users signing in the same home folder, so them need to have full access to this folder, but with different 'profile' behavior. host-foo: user1 : /home/foo-folder -...
4
votes
3answers
14k views

How to write a shell script that gets executed on login?

I am trying to write bash shell script in Ubuntu 11.10 Linux distro, that will get executed automatically on logging into the system. But I am not able to figure out that what to write in script that ...
4
votes
2answers
15k views

Colorful ssh banner

I would like to colorize my ssh banner. I know I can perform it like so: In /etc/profile I can put: echo -e "\e[1;31m Colorful text" echo -e "\e[0m Reset" But I have some ASCII art in the banner ...
1
vote
1answer
139 views

sh - Using Arguments in .profile functions

I want to use an argument in the function I created in my .profile file. I want to ask for input if no argument is given, otherwise set a variable to $1. When I check $1 to see if it is empty, I ...