2022 Developer Survey is open! Take survey.

Questions tagged [.profile]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
62 views

How to create a new bash profile in mac osx high sierra?

I am running High Sierra 10.13.6 off a fresh install. Running ls -a, I can see .bash_history and .bash_sessions, but do not see .bash_profile. Having just installed homebrew, I am following this guide ...
user avatar
2 votes
0 answers
49 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 ...
user avatar
0 votes
2 answers
91 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 ...
user avatar
  • 141
0 votes
1 answer
4k 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: ...
user avatar
0 votes
1 answer
1k 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 "...
user avatar
0 votes
1 answer
163 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/...
user avatar
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 ...
user avatar
  • 1,268
0 votes
2 answers
1k 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 ...
user avatar
1 vote
1 answer
63 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;...
user avatar
0 votes
2 answers
692 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 $...
user avatar
  • 1,268
0 votes
0 answers
45 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 ...
user avatar
  • 1,268
0 votes
1 answer
456 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 ...
user avatar
  • 1,268
1 vote
4 answers
575 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 ...
user avatar
0 votes
0 answers
80 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 ...
user avatar
6 votes
2 answers
16k 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 ...
user avatar
  • 161
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....
user avatar
  • 1,978
2 votes
1 answer
7k 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 ...
user avatar
0 votes
0 answers
52 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/....
user avatar
1 vote
1 answer
282 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 ...
user avatar
  • 145
1 vote
1 answer
734 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 ...
user avatar
  • 113
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 ?...
user avatar
  • 649
0 votes
1 answer
76 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 ...
user avatar
  • 137
1 vote
1 answer
938 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 ...
user avatar
  • 283
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" ]] ...
user avatar
  • 1,065
2 votes
2 answers
352 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 ...
user avatar
1 vote
1 answer
588 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 ...
user avatar
  • 153
33 votes
6 answers
51k 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 ...
user avatar
  • 461
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:...
user avatar
5 votes
3 answers
30k 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)
user avatar
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 ...
user avatar
  • 11
19 votes
1 answer
60k 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 ...
user avatar
9 votes
2 answers
9k 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?
user avatar
  • 409
45 votes
10 answers
31k 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 ...
user avatar
  • 5,983
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?
user avatar
0 votes
1 answer
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.
user avatar
  • 135
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 ...
user avatar
3 votes
3 answers
4k 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=/...
user avatar
  • 139
20 votes
3 answers
37k 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?
user avatar
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:/...
user avatar
  • 213
-1 votes
1 answer
474 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 ...
user avatar
  • 109
15 votes
2 answers
92k 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 ....
user avatar
  • 739
1 vote
2 answers
762 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.
user avatar
  • 175
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 ...
user avatar
  • 23
13 votes
1 answer
16k 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/...
user avatar
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?
user avatar
29 votes
5 answers
17k 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?
user avatar
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 ...
user avatar
  • 8,094
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 ...
user avatar
  • 197
2 votes
3 answers
820 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. ...
user avatar
  • 6,174
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 ...
user avatar