The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
2answers
49 views

184 environment variables too many?

I am trying to find the cause of some OS wonkiness, and am concerned about environment variables. The software I have been handed puts an incredibly high amount of environment variables into the ...
2
votes
2answers
51 views

PS1 variable no longer shows coloured bash prompt

I'm running a VPS with Centos 6.5 I've setup ~/.bash_profile as in the following screenshot: It used to give me an output like this: Now that I've installed WHM/Cpanel I no longer see coloured ...
0
votes
1answer
44 views

Does ~/.bashrc set environment for users whose shell is /sbin/nologin?

I have an SFTP server and have set user shells to nologin to restrict access to SFTP. I want to set a conditional umask of 0002 so that newly created files are group writable for all SFTP users. Can ...
3
votes
4answers
235 views

Execute a program at login

I'm running Arch-Linux ARM on a Raspberry Pi. My project goal is to have a barcode scanner attached to the Pi that forwards the scanned messages to a server in a LAN. To harden the system against ...
1
vote
2answers
27 views

Adding script to autostart

I have this script: #! /bin/bash xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr --addmode DVI-I-1 1920x1080_60.00 xrandr --output DVI-I-1 ...
2
votes
1answer
54 views

Where do I place commands to automatically be exported for all users?

I have an embedded platform running an Arago linux distribution. Right now the only "user" is root but there will eventually be others, but I don't know how many or what user IDs they will have. ...
1
vote
0answers
45 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
4answers
83 views

How to add an alias without directly editing the `bash_aliases` file?

Is there a way to add an alias from the command line without directly editing the bash_aliases file? To clarify, how can I make a bash script do it without having to enter something along the lines of ...
2
votes
2answers
72 views

Customizing bash for many servers

I work with a few dozen servers. I'd really like to streamline my work, but at the same time I'm a bit reluctant, since it would be a lot of work synchronizing all servers. The servers are in ...
0
votes
1answer
52 views

Missing source ~/.bashrc Mac terminal : ~/.profile?

I need to install Gerris on mac 10.9.1. The website http://gfs.sourceforge.net/wiki/index.php/Mac_OSX_Installation says: Note: make sure that the file ~/.profile contains the line source ~/.bashrc ...
1
vote
1answer
116 views

Where is the .xprofile for Elementary OS Luna

I have this problem similar to this thread. http://askubuntu.com/questions/63863/unknown-monitor-intel-driver-want-to-set-vga-resolution-to-widescreen-tv/154818#154818 it fixed my resolution issue but ...
1
vote
1answer
69 views

.bash_profile alias escape quotes?

On the rare occasion I use the command line, I usually forget syntax. This is one of those times. I want to add a simple alias to my .bash_profile but no matter what quote method I use, I get an ...
2
votes
3answers
839 views

How to add a function to .bash_profile/.profile/bashrc in shell?

I have a function which converts epoch time to date. Here is the definition date1(){ date -d @$1 } I'd like to be able to write: $ data1 xxxyyy And I want the corresponding date. I understand ...
0
votes
0answers
27 views

Chromium OS Compiling Path [duplicate]

After following the steps at the Chromium OS Developer site, I would like to know how I could add the path to my .bashrc file so I could make it permanent? I am using Ubuntu 13.10
1
vote
1answer
55 views

“No such file” warning on terminal launch

I ran a source command on a file that was missing. I forgot about it but later noticed that every time I opened a new terminal, the first line would be a warning about the missing file bash: ...
1
vote
1answer
163 views

How do I track down the source of a ssh login message?

I installed mailutils on my linux machine with Linux Mint 15 (basically Ubuntu 13.04). When I log in, I get the following: Welcome to Linux Mint 15 Olivia (GNU/Linux 3.8.0-32-generic i686) Welcome ...
1
vote
2answers
269 views

HISTTIMEFORMAT modification. In /etc/bash.rc or /etc/profile? [duplicate]

I'd like to add the date/time to the output of the history command in CentOS/RHEL 6. I would like this to apply to all users on the machine by default. This itself is easy. It seems to just be a case ...
0
votes
0answers
134 views

Copy keyboard shortcuts between profiles on kali linux

I've just spent a while customizing a new install of kali Linux, however, I realise I've just set everything up on the root user account and not on the user account I created. As a result, I don't ...
3
votes
2answers
246 views

How to load .profile without relogin in AIX?

How can I load my .profile file without a relogin in AIX Server?
0
votes
1answer
262 views

Why alias does not 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
4answers
316 views

Why no shebang in .bashrc/.bash_profile?

Simple inquiry: I have just realized that I have never seen a shebang on top of a .bashrc script, which leads me to think the system uses the default shell to source it upon login (${SHELL}). I am ...
4
votes
2answers
4k 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 ...
3
votes
1answer
169 views

A robust way to execute a command/run a script at login?

I have two commands that change keyboard behaviour: xset r rate 120 66 /usr/bin/setxkbmap -option "ctrl:nocaps" When I open a terminal and execute them, they change auto-repeat settings and remap ...
4
votes
1answer
492 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 ...
1
vote
2answers
171 views

How to make an application run automatically?

I am trying to run my application when a user logs in. So I've added a script in ~/.bash_profile as follows: # for Buluttdepo /usr/bin/myapp > /dev/null 2>&1 & export ...
1
vote
2answers
3k 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 ...
0
votes
1answer
182 views

Command substitution in alias resolved in bash profile? [duplicate]

I want to make an alias for randomly changing my mac address alias chrandmac="sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')" but the command substitution part is ...
2
votes
2answers
2k views

Linux (RedHat) `sudo su -l <<user_acct>>` does not source profile

As stated, having trouble with loading the default profile of <<user_acct>> when doing sudo su -l <<user_acct>>. Inside .profile, if [ -r "${HOME}/.profile.custom" ]; then ...
2
votes
1answer
78 views

Message appears after every command completed

I am very new to Linux. Having said this, I had a friend go on my RHEL machine and he somehow added a few random lines in a file, which will post every time I have completed a command. I am not sure ...
2
votes
1answer
225 views

Modifying $HOME variable on a session startup script: Gnome ignores it?

I'm modifying the $HOME variable on a /etc/profile.d script. This seems to be OK for console sessions. There are some caveats on graphical sessions, though: Gnome won't load my desktop ...
2
votes
2answers
775 views

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

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 ...
10
votes
2answers
846 views

How can I create a clean shell environment for temporary use?

I am a frequent answerer on a Unix-focused popular Q&A site, and in many of my answers I provide examples using the bash shell. However, each time I do this I have to manually go through the ...
0
votes
2answers
818 views

$PATH in /etc/profile not inherited by user shell

I have this in /etc/profile in Fedora 17: PATH=$PATH:"/usr/pgsql-9.2/bin" EDITOR="/usr/bin/emacs -nw" PSQL_EDITOR="/usr/bin/emacs" PAGER="/usr/bin/less" export PATH USER LOGNAME MAIL HOSTNAME ...
4
votes
2answers
3k views

Global bash_profile

I realize there are /etc/profile and /etc/bashrc files for setting global environment variables and maybe I'm just misunderstanding their purposes, but... Is their a global bash_profile file? This ...
2
votes
1answer
1k views

export PATH only once per login in zsh

I need to alter my PATH variable so I put export PATH=$PATH:somedir in my $HOME/.profile which is sourced by my $HOME/.zshrc. This works, yet whenever I open a new terminal (urxvt in X11), .zshrc ...
18
votes
2answers
3k 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 ...
10
votes
1answer
263 views

How do you set up the environment for es?

I've been playing with es the last couple of days, and it (like rc) has the quirk/feature that it only runs its startup script (.esrc) on login. The usual way to run code in each interactive session ...
0
votes
1answer
319 views

add directory to shell profile [duplicate]

Possible Duplicate: How can I make a program executable from everywhere So, I'm new to Linux/Unix and am working in a corporate version of Red Hat at my company. Obviously I don't have full ...
8
votes
4answers
2k views

what is the difference between ~/.profile and ~/.bash_profile

I want to know the difference between ~/.profile and ~/.bash_profile.
2
votes
1answer
231 views

How should I go about setting up vim-pathogen plug-ins for a group as a user with no root permissions?

I do not have root permission on a linux cluster, but I would like to share my vim-plugins to all other members of a linux group using vim-pathogen. We have a group-accessible folder, so that's where ...
2
votes
1answer
859 views

Reload ~/.profile for desktop [duplicate]

Possible Duplicate: how do i tell gnome to reread my ~/.profile How to change environment variables without re-logging to UI? I'm trying to reload my ~/.profile without login out. I can ...
0
votes
2answers
390 views

.profile in SCO

Where can I find the .profile in my user's logon in SCO? I am needing to edit it, so I can add a PATH to it, so that my PATH loads up in start up. I have to add: echo $PATH ... as I have already ...
0
votes
2answers
2k views

How to assign user root rights?

I have Suse Linux on my desktop. So I am root and "normal" user. Frequently e.g. to start tomcat or install/remove a program I should use sudo or switch to super user. But I have defined many aliases ...
1
vote
2answers
10k views

How to set environment variable JAVA_HOME that will be saved on exit? [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) I use Suse. First was installed jdk7, so JAVA_HOME remains like: /usr/java/jdk1.7.0_05/ After I ...
1
vote
2answers
703 views

How to execute a function in the .profile file

I have a function which is supposed to remove duplicate copies of directories from my PATH environment variable. I have created some duplicates so I can test it but I don't know how to: 1) put the ...
13
votes
2answers
6k views

What is the difference between ~/.profile, ~/.bashrc, ~/.bash_profile, ~/.gnomerc, /etc/bash_bashrc, /etc/screenrc …?

Answers to the questions on SO and askubuntu, along with poking through (and reading headers of) $HOME and /etc/, indicate a number of files that can be used to set environment variables, including: ...
6
votes
1answer
225 views

How to make linux 'perf record' work for libc and libstdc++ symbols?

I'm using perf record -g on x86-64 Linux to profile a program. Several symbols in libc or libstdc++ have 0 as a parent: __GI___strcmp_ssse3 (libc) and strcmp@plt (libstdc++) for example. (I can ...
0
votes
1answer
203 views

Fedora 7 server export in .bashrc not getting set [duplicate]

I'm trying to set the JAVA_HOME environment variable in my .bashrc but every time I log back in it gets unset again to its original value, below is my .bashrc file # .bashrc # User specific aliases ...
0
votes
2answers
2k views

Trying to set JAVA_HOME in ~/.bashrc

I have added this line at the end of ~/.bashrc export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java But when I execute echo $JAVA_HOME, I don't get anything as output, I expected ...
0
votes
2answers
491 views

Bash script error trying to find directory of script itself: unexpected end of file

Borrowing graciously from this StackOverflow answer, I want to find the directory a script is running in so I can load relative paths for it on login: The script is pretty small right now: ...