Questions tagged [.profile]
A common configuration file (e.g. for environment variables) on Unix and Linux systems
52
questions
0
votes
1
answer
75
views
Weird spacing in alias from .profile
I am trying to add some aliases to my yocto linux machine. For testing purposes i added the lines alias ..='cd ..' and alias ps='ps -A' to a newly created ~/.profile. When I log in to my device with ...
2
votes
0
answers
198
views
Including an export in .profile does not update path after login
I installed Kali Linux v2020.4 using i3-wm and have updated .profile [below] to include an exported PATH, as I assumed updating .profile would impact all shells (sh, Bash, Zsh, etc.).
After logging ...
1
vote
2
answers
129
views
Hyper-V Ehnanced Session: Ubuntu 18.04 .profile not run
When I log in to my Ubuntu 18.04 VM using the Hyper-V enhanced session, my .profile is not sourced. So my custom changes to PATH etc. are not available.
When I log in via a basic session, .profile ...
0
votes
1
answer
7k
views
stty in .profile causes: "stty: 'standard input': Inappropriat ioctl for device
I added into my .profile file the command stty werase ^H (The command makes it possible that i can delete a word with Ctrl + Return).
But whenever i start my PC it prints the following error:
...
0
votes
1
answer
3k
views
Why doesn't my terminal load .profile when I launch it?
I am very new to being a developer, and I have just started using Ubuntu. I am currently trying to run elasticbeanstalk CLI on my terminal, but I always get "eb: command not found" error when I type "...
0
votes
1
answer
186
views
Can't load my thunderbird exisisting profile after upgrade Thunderbird to 60.3 on Xubuntu 16.04.5
I have Thunderbird installed in /opt directory (I installed it few years ago in this directory) but now with a new Thunderbird upgrade I can't see any of my emails and account stored in /home/username/...
0
votes
1
answer
1k
views
How to reset .profile in Linux Mint 19
I'm running Linux Mint 19 Bionic, and I messed around with the .profile to do some custom stuff. While it all works it triggers a warning about errors in the script. After figuring out that the task I ...
0
votes
2
answers
2k
views
File .profile is not sourced on Debian Buster (testing)
I added a few things to my PATH variable in .profile on a fresh install of Debian Buster, but inspecting the environment on reboot, I see that nothing changed. What could be the problem?
The added ...
1
vote
1
answer
69
views
Why is PS1 being physically changed in file, against my will by some outside process?
Really weird thing going on here after enabling Linux on my Chromebook. It's not a deal breaker but it's extremely weird. Why is PS1 always being set to this?
\[\033[01;34m\]\u\[\033[00m\]@\[\033[01;...
0
votes
2
answers
809
views
Linux Mint .profile TERM variable not set
I have a custom script in my .profile file, with added code and nothing taken away, however it is still replying with a TERM ENVIRONMENT VARIABLE NOT SET error. However, if I run the command echo $...
0
votes
0
answers
85
views
Test if GUI has been run in linux bash
In my .profile file on my Linux Mint 19 terminal I need it to test if the GUI is running on any of the CTRL+Alt+F# keys, not just the current one. If it is not running it runs the startx command. If ...
0
votes
1
answer
527
views
Start GUI in .profile if it is not running? Linux mint 19
I have the following script in my .profile file:
systemctl is-active --quiet lightdm && (
echo Welcome to Terminal) || (
sleep 8
startx)
fi
the goal is that if the gui is not ...
1
vote
4
answers
712
views
Why is PATH defined in ~/.profile even though launching a Terminal with bash executes only ~/.bashrc?
I have a guest user account on my Debian system with XFCE desktop.
It has a ~/.profile file added by default. The last few lines of this
file are:
# set PATH so it includes user's private bin if it ...
0
votes
0
answers
95
views
Cannot Find ~/.profile, Only ~/.profile.swp (OSX)
I am in the process of installing Homebrew, but, when I go to edit ~/.profile, I am finding that only the binary file ~/.profile.swp exists. I have been reading about swap files and trying to better ...
8
votes
2
answers
19k
views
How does one define aliases for use within MobaXTerm *local* bash shell?
I have been using MobaXterm for the last couple of weeks in Windows and I love it.
However, I haven't quite figured out how to define my own aliases for use within the local bash shell. The obvious ...
1
vote
1
answer
2k
views
opening Sublime Text (or other text editor) from command line as root on Mac OS
I've modified my /var/root/.profile using nano (this is the only editor which works with root for some reason(. Ridiculous, I know))):
export EDITOR="subl -w"
alias subl='/Applications/Sublime\ Text....
2
votes
1
answer
9k
views
Sourcing ~/.bashrc in ~/.profile?
I'm quite new to developing under OSX and assigned some aliases and other preferences in the ~/.profile initially, however it got quite big and messy after a while because I had a lot of Environment ...
0
votes
0
answers
54
views
How to prevent MacVim from inherenting .profile as if it was Bash itself?
I have this guard in my .profile:
if [ -n "$BASH_VERSION" ]; then
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
if [ -f "$HOME/.bash_aliases" ]; then
. "$HOME/....
1
vote
1
answer
393
views
Setting keyboard shortcuts to launch program on startup/login in linux across WMs
What I want to achieve is having access to a couple of keyboard shortcuts (for an instance to launch the terminal), bound to my user.
Background
This is because we have a setup with a lot of ...
1
vote
1
answer
921
views
.profile in LXDE
I recently install debian wheezy (7.5) from the netinst, without gnome3, then install LXDE with sudo apt-get install task-lxde-desktop. No trouble with this, LXDE works perfectly :)
I was trying to ...
0
votes
1
answer
1k
views
Redhat linux terminal profile location
I am using VNC to connect to a remote machine where I used to set preferences for the terminal like my own keyboard shortcuts.
Can anybody tell me where these profile configuration is getting saved ?...
0
votes
1
answer
102
views
Export variables or set them in .profile?
I am installing Apache Maven 3.1 on Ubuntu Desktop 10.04.
The installation page http://maven.apache.org/download.cgi#Installation, in the section "Unix-based Operating Systems", states to export ...
1
vote
1
answer
1k
views
What is the difference between setting the path via editing /private/etc/paths vs ~/.profile?
I just found out I can edit my PATH by editing /etc/paths or /private/etc/paths, or by putting export PATH=$PATH:/a/path in ~/.profile or one of my other startup scrips.
Is there a difference between ...
4
votes
1
answer
8k
views
.profile and .bash_profile ignored when starting tmux from .bashrc?
I've been having an issue with getting my .profile to be sourced when SSHing into an Ubuntu 12.04 server instance. My .bashrc does the following towards the end:
if [[ "$TERM" != "screen-256color" ]]
...
2
votes
2
answers
392
views
alias or function for emacs command?
So I'm on my first day at my new job, and on the server we use, the default emacs is X-windows based. I much prefer using it in the good old terminal, and I'd like to be able to make the command ...
1
vote
1
answer
592
views
OSX Mountain Lion - .profile doesn't do anything? [duplicate]
Recently tried the package manager Homebrew to grab things like PyQt4. It also recommended grabbing Python; no problem, done.
So a simple python at the Terminal window didn't open the recently ...
38
votes
8
answers
59k
views
~/.profile is not loaded when using SSH (Ubuntu)
Edited to reflect the problem I really wanted to solve:
I need to set up my ruby environment so I can deploy via Capistrano.
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
I put these in ...
0
votes
1
answer
1k
views
csh -> bash, autostart .bashrc PCBSD (FREEBSD)
Hey Im stucked with this problem...
Im using PCBSD (freebsd) which has default csh shell, now I wanted to use bash as a default so I made
> chsh -s /bin/bash milo
now i have in passwd
> milo:...
5
votes
3
answers
31k
views
set PATH permanently
How do I edit my .profile file to set a permanent value for my PATH variable?
Is there any other file that needs editing?
(This is on CentOs 6.2)
1
vote
1
answer
1k
views
aix 5.3 cannot execute or load .profile automatically when login
I am using AIX 5.3, after I login as an Oracle user, I got a prompt to ask me to give the oracle home directory. If I manually type in ". .profile", it would work.
My AIX team has built this new ...
19
votes
1
answer
62k
views
Can't find .profile file in OS X
I'm trying to install TBB (Thread Building Blocks) from Intel onto my Mac. However, no matter where I look, I can't find the .profile file that I require to modify to use TBB.
Any advice or hints on ...
12
votes
2
answers
14k
views
Order of execution and purpose of .profile vs .zshrc
Few questions:
What is a distinct purpose of .profile and .zshrc?
What gets called first when the shell comes to life?
47
votes
10
answers
37k
views
re-use '~/.profile` for Fish?
(I'm talking about the shell Fish, esp. Fish's Fish.)
For Bash/ZSH, I had ~/.profile with some exports, aliases and other stuff.
I don't want to have a separate config for environment variables for ...
1
vote
2
answers
4k
views
What is .profile file in AIX Platform?
In my home path, there is one file named ".profile". It contained ORACLE_HOME path and all.
What is the use of .profile file? Is it similar to .cshrc file?
0
votes
1
answer
3k
views
How to create .profile file and where it should be saved
Iam very new to Mac OS X 10.6.2 ,i want to create java_home and path. I find that those will be defined in .profile file, how can i create it and where should it be created.
0
votes
3
answers
3k
views
Edit .profile file without using terminal
I have edited the .profile file and I messed up something so that the PATH has changed and I can't use commands such as nano, sudo, etc...
The problem would be easy to solve because I know how to edit ...
3
votes
3
answers
5k
views
How to make an alias for a folder on a mounted drive?
I use parallels to run a windows machine and would love to make an alias in my .profile to make a shortcut to my project folder, but the following alias below dosn't seem to work.
alias trustpilot=/...
24
votes
3
answers
42k
views
.profile not running when I start a bash terminal
When I start a bash terminal, my .profile is not being executed. I do not have a ~/.bash_profile or a ~/.bash_login, so .profile is supposed to run, right? What else could be wrong?
11
votes
2
answers
6k
views
.profile not loaded (osx lion)
after installing mac ports my .profile looks like this:
# MacPorts Installer addition on 2011-12-04_at_20:48:26: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/...
-1
votes
1
answer
493
views
How to recover .profile on mac
I have mis-configured ~/.profile while adding new enviroment variable now i want to restore my original .profile for my macOS, i am not mac expert please help me.
None of my shell command is working ...
16
votes
2
answers
100k
views
Where to create a .profile on Mac OS X
I'm using Mac OS X Snow Leopard. Which folder do I create my .profile file in?
I like to create a path for /usr/local/mysql/bin – any tips on how to export this path? I only know how to type it for ....
1
vote
2
answers
808
views
Ubuntu lucid not reading etc profile for new XTerm
I've added abc.sh to /etc/profile.d When I start a new XTerm the environment variables in the abc.sh are not being set in the new XTerm. This works fine if I su - in an existing XTerm.
0
votes
2
answers
2k
views
Why isn't the shell reading from Bash startup files?
I'm just trying to do the simple task of adding my MySQL directory to the PATH variable so that I can use the mysql, etc. commands in my terminal on my Mac OS X 10.6.6 (Snow Leopard). After ...
13
votes
1
answer
17k
views
~/.profile is not sourced on startup
I've recently installed virtualenv + virtualenvwrapper on Linux Mint 10 LXDE. For convenience I've added the standard WORKON_HOME settings to my ~/.profile
export WORKON_HOME=$HOME/Envs
source /usr/...
0
votes
2
answers
1k
views
On Mac ~/.profile file went suddenly missing
And with it all my class paths, env vars and aliases. Is this something that can be recovered?
31
votes
5
answers
18k
views
.profile and .bashrc doesn`t work on my Mac
This problem I have for a long time. After running terminal .profile, and .bashrc file doesn`t work (are not executed). Could you indicate where should I looking form a source of problem?
1
vote
3
answers
3k
views
Edit bash_profile?
I am trying to learn bash. I am using ubuntu.
I want to add a function. I am not sure weather I need to create a.profile or .bash_profile file so I create both in the ~/ directory.
I add something ...
0
votes
3
answers
4k
views
"-bash: ls: command not found" error in Terminal on Mac. How to correct it?
I edited the .profile file to add a new PATH. I believe I set it wrong such that most commands become unavailable. Since I can't use ls or vi commands to edit .profile again, any idea how I can ...
2
votes
3
answers
836
views
macbook, messed up my .profile and now no commands work like nano, rm, etc
I messed up a .profile and now I can't even get nano to work.
I was trying to add git to my environment variable whenever I start terminal, and I messed the command up obviously and no nothing works.
...
2
votes
2
answers
1k
views
FreeBSD console broken?
It seems my FreeBSD console is misconfigured (i guess). I cannot use home or end buttons in command line (it prints ~), and in vi left arrow is switching me from edit to command mode, which makes ...