Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [.profile]

A common configuration file (e.g. for environment variables) on Unix and Linux systems

0
votes
1answer
52 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
1answer
104 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
1answer
74 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
1answer
55 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
2answers
120 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
0answers
19 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
1answer
134 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 ...
0
votes
4answers
84 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
0answers
50 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 ...
4
votes
2answers
6k 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
1answer
1k 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....
1
vote
1answer
1k 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
0answers
46 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
1answer
239 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 ...
0
votes
1answer
538 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
1answer
979 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
1answer
72 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
1answer
782 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
1answer
6k 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
2answers
255 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
1answer
579 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 ...
17
votes
3answers
28k 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
1answer
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:...
4
votes
3answers
26k 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
1answer
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 ...
16
votes
1answer
37k 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 ...
3
votes
2answers
2k 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?
26
votes
9answers
14k 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
2answers
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
1answer
2k 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
3answers
2k 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 ...
0
votes
3answers
2k 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=/...
13
votes
3answers
19k 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
2answers
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/...
-1
votes
1answer
439 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 ...
9
votes
2answers
54k 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
2answers
720 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
2answers
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 ...
8
votes
1answer
13k 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
2answers
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?
27
votes
5answers
13k 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
3answers
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
3answers
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
3answers
786 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
2answers
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 ...
30
votes
5answers
30k views

Bypass ~/.profile on remote login to a linux server

Is there a way to bypass or prevent the execution of ~/.profile when logging into a remote Linux server using either ssh or putty?
22
votes
2answers
79k views

.profile in Mac OS X?

I have set my terminal preferences to execute: set -o vi at startup. The problem is I don't get that command executed when open a new terminal tab. Is there something like .profile in OS X where ...