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 user-specific (not systemwide) configuration script executed when starting login shells.

0
votes
1answer
64 views

Export path working from terminal but not bash script

If I run export PATH=$PATH:/home/mike/bin/*:/home/mike/app/* from a command line it works fine, but if I put it into a bash script, it doesn't work (even with a restart). I have also tried including ...
0
votes
1answer
97 views

Ubuntu 18.04 on startup error, [-f: command not found

I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work The only thing I did was following the react-native installation instruction: created a ....
0
votes
1answer
64 views

How can I change $ to > in terminal? [duplicate]

In any terminal there is specific meaning of puneet@Puneet-Ubuntu-PC:~$I want to replace '$' symbol with '>'. Please guide me How can I make this change.
0
votes
0answers
159 views

Error found when loading /etc/profile

the error just keeps showing up, and it is mainly about : '/usr/lib/python3/*':permissions denied! even after i restore /etc/profile with /usr/share/base-files/profile, anybody knows why?
0
votes
1answer
109 views

Ubuntu 18.04 boot error: syntax error: unexpected end of file when loading .profile [duplicate]

I can't figure out what is wrong with my Ubuntu 18.04. I was trying to set a path for an application in my .profile and restarted the machine. Since then, I've been getting this error on the screen. I ...
0
votes
1answer
294 views

Error found when loading /home/[user]/.profile at boot

Every time after I login, but before the desktop loads, a dialog box with the error: Error found when loading /home/[user]/.profile enp7s0: Unknown host ifconfig: `--help' gives usage information. I ...
1
vote
2answers
52 views

Ubuntu 16.04: Inability to log in after small modification in .profile file in user home

I have an Ubuntu 16.04 system on my laptop. I had installed the program redshift on it which adjusts the screen light to make it easier on the eyes. Today in a bid to always start it up automatically ...
0
votes
1answer
325 views

How to reload environmental variables in .profile using source for entire session? [duplicate]

So I need to reload my profile after making changes (this time due to a typo). I run source ~/.profile and everything works perfectly fine. However the source command only applies to that terminal ...
1
vote
2answers
773 views

Firefox profile cannot be loaded…profile created but still not able to launch?

I created a new sudoer on my Ubuntu machine and logged in. Now when I launch Firefox it gives the error that Firefox profile cannot be loaded. I looked for the solutions then I got the way to create ...
1
vote
1answer
78 views

How to remove texlive from Path

I want to remove texlive from my PATH after deleting it with rm -rf command and I have deleted the path for texlive in .bashrc but when i run the command: echo $PATH I'm still seeing texlive in my ...
0
votes
0answers
61 views

error loading /etc/profile (xinput property doesn't exist)

After upgrading from Xenial to Bionic, I now receive errors when logging into my desktop: Error found when loading /etc/profile Property 300 doesn't exist, you must specify its type and format ...
2
votes
1answer
552 views

How can I set path so it can be read from GUI and command line by the same program?

I installed texlive and I want to add it as an environment variable to my Path so that Emacs AucTeX can read it when I start emacs from the GUI or from the command line. So far I've read that emacs ...
1
vote
2answers
1k views

.xprofile broken in Ubuntu 18.04

Today I upgraded to latest Ubuntu 18.04 from 17.10, but computer says ~/.xprofile has syntax error, and could not use desktop. Only a movable mouse icon on a violet color blank screen. When I ...
0
votes
2answers
50 views

Where would the stdout output by `~/.profile` have gone when starting Ubuntu?

My ~/.profile contains a command which outputs to stdout when Ubuntu 16.04 with LXDE is started. I grep /var/log/ for the output, but found nothing. Where would the output have gone, or is it lost ...
14
votes
1answer
2k views

How can I restore /etc/profile? [duplicate]

I'm working on a bash script that appends to /etc/profile but instead of appending, I accidentally wrote over it, losing all of its content. How can I restore the file? I did search here but being ...
0
votes
0answers
16 views

.profile seems to passe its own path as positional argument `$1` while being sourced from Lightdm

To set my environment, in .profile I source the file ~/.envr: # ~/.profile . $HOME/.envr that executes some tasks (environment variable setting, etc.). ~/.envr uses the second positional ...
0
votes
1answer
115 views

terminal was slow(after finishing the process)after fixing it: unknown characters in terminal appears

My terminal was slow. Every time after finishing the process like: Installing software or sudo apt update etc... I should wait for the shell for about 5-10 sec to type next commands. So i ...
1
vote
2answers
309 views

Global variable not automatically loaded from .profile

In order to setup CUDA 9.1, I read it is convenient to add its installation folder to PATH and LD_LIBRARY_PATH, as: PATH="/usr/local/cuda-9.1/bin:$PATH" LD_LIBRARY_PATH="/usr/local/cuda-9.1/lib64:$...
0
votes
1answer
69 views

How can I wait in the .profile script until all devices are mounted?

In my .profile script I want to export a variable if an external USB hardisk is mounted. I need this variable in later Perl scripts to determine if the device is mounted. Especially, if the device is ...
0
votes
0answers
226 views

SSHFS not connecting at login using .profile - connection reset by peer

I'm trying to create an sshfs connection when I login, so I have added a call to a script within the ~/.profile which runs the sshfs command. Here's the script that is called: !/bin/bash sshfs ...
-1
votes
0answers
313 views

Error found when loading /home/[username]//.profile

I've tried searching for 2 days and can't find anything that will answer why my Ubuntu 17.10 is looking for my profile with // instead of just /. I did the upgrade from 16.XX to 17.10 and my screen ...
0
votes
0answers
39 views

How to start gnu-screen from .profile without the disclaimer / welcome message

I added screen to my .profile, in order to always be able to restore a ssh session. This works great but for evey login I see the disclaimer / welcome message of gnu-screen and need to press the space ...
8
votes
2answers
2k views

Why do I have to `source .profile` in every terminal I open?

When we change some variable in ~/.profile in Ubuntu, then we execute the command source .profile. Then the change is effective only in this terminal. If we open a new terminal we have to execute the ...
0
votes
1answer
96 views

PATH environment variable behaviour when switching user with and without login

when i login as a user then switch to another one, the PATH environment variable changes when the switch is done with and without login. see the following snippet $ ssh -i ~/.ssh/ubuntu.pem ubuntu@...
1
vote
1answer
354 views

What are the dangers of sourcing ~/.profile from ~/.bashrc? [closed]

I see many people do the opposite. Are there any reasons why it is a bad idea to source ~/.profile from ~/.bashrc? # .bashrc if [ -f ~/.profile ]; then source ~/.profile fi I've done a lot of ...
0
votes
3answers
502 views

Ubuntu 16.04 Login Loop after changing PATH

I've changed my .profile file and added to the end: Export PATH = "bin/somepathToMatLab" This resulted after a restart, that when I login with the GUI it loops right back to the login page. I then ...
1
vote
1answer
3k views

“qmake” is not recognized

I have installed Qt 5.6 from the official website via a *.run file. The installation directory is in my home folder. When I run qmake --version I get the following message: qmake: could not exec '/...
0
votes
0answers
133 views

.profile xinput issue

On Ubuntu 16.04 lts my Logitech wireless mouse scroll speed is too high, so I intended to use the following row in the ~/.profile: xinput set-prop 9 'Evdev Scrolling Distance' 8 1 1 as suggested ...
2
votes
4answers
5k views

How to set default umask in Ubuntu 17.04?

In the past, I have always set umask at ~/.profile. I set a umask of 077 so my documents get a permission of 600 (rw-------). But setting this at ~/.profile no longer works in Ubuntu 17.04. So as new ...
0
votes
2answers
169 views

Will this break anything? alias l='ls -ltra'

Will this break anything? alias l='ls -ltra' I usually set this alias in .profile in AIX.
4
votes
2answers
3k views

Error found while loading /home/[username]/.profile

When the system loads it gives the following error: Error found while loading /home/[username]/.profile mesg: ttyname failed: inappropriate ioctl for device As a result the session should not be ...
4
votes
2answers
749 views

Shell prompt customization and cmd behavior

I want my prompt to display: current (absolute) working directory, colored in green and in a NEW line, the dollar sign and an empty space. I am using this line in .profile export PS1='\e[0;32m$(pwd)...
1
vote
0answers
26 views

Bash - reload profile or bashrc when switching to root [duplicate]

Just moved over to ubuntu land from fedora (wanted try the budgie build). I'm fed land I had a script (from Fedy - posted below.) that changed my prompt to red when I logged into the root shell with ...
0
votes
1answer
2k views

startup popup error: error found when loading /etc/profile

I run Ubuntu 16.04 LTS with default Unity window manager and I started getting this popup error right after I login (only when starting up the computer after shutdown; I do not get the error if I ...
0
votes
1answer
266 views

How to add a folder in environment variable permanently [duplicate]

I know similar questions have been asked before on here (for example: How to add a directory to the PATH?) However, I don't know what to add and where to add this. If I open ~/.profile, it looks ...
1
vote
3answers
1k views

How do I add welcome message to Linux?

I want to add a welcome message (and change a greetings row) to Linux. I added echo "Hello" PS1="\u $: " to “.profile” file, but nothing happens after the reboot. Why?
0
votes
1answer
44 views

Thunderbirds profili.ini is empty. How to rewrite it?

the title says it basically. My profile.ini from thunderbirbird is empty. I don't know why, but I would like to rewrite it to access my emails - can I somehow recover or rewrite it with some copy/...
3
votes
2answers
1k views

How do I explain the contents of the profile file [closed]

Examining the contents of ~/.bash_profile shows: codio@data-burma:~$ cat ~/.bash_profile if [ -f ~/.bashrc ]; then . ~/.bashrc fi cd /home/codio/workspace codio@data-burma:~$ What does all this ...
1
vote
1answer
227 views

Why does my xprop- command fail on login, if I run it from ~/.profile?

I'm running Lubuntu 16.04. It's using openbox as its window manager. I wanted to configure the virtual desktops to be in a grid arrangement rather than a line, which I can do by running this command: ...
-1
votes
0answers
309 views

Ubuntu default Home folder changed accidentally in ~/.profile to other folder on 16.04

While setting up Geoserver on my laptop following this tutorial http://docs.geoserver.org/stable/en/user/installation/linux.html .. i seem to have messed up something. When i restarted, my default ...
4
votes
1answer
166 views

How can I configure the steps of font size changes in the terminal?

How can I configure the steps of font size changes in the terminal? I now use 10pt and the next step when using keyboard shortcuts is too big. How can I configure the step size?
1
vote
0answers
62 views

.profile not getting sourced after update

I have recently update my Ubuntu. After update I am unable to use nvm command(node version manager) which is configured using following code ~/.profile export NVM_DIR="/home/saurabh/.nvm" [ -s "$...
0
votes
1answer
130 views

Ubuntu 14.04 Login Loop problem after appending .profile file in home folder

Ubuntu 14.04 get stuck when trying to login my desktop. The screen goes black and soon after that the login screen bounce back. Actually i added a line in /.profile file in last boot-up export PATH= ....
0
votes
1answer
1k views

Prepend folder to PATH

I want to append my anaconda folder to the beginning of $PATH so that I can use python and pip from Ananconda Here is my ~/.profile: if [ -n "$BASH_VERSION" ]; then # include .bashrc if it ...
0
votes
0answers
32 views

Looking at the profile of a new user

I created a new user (useradd testuser). How could I see the profile of this new user? I thought it was cat ~testuser/.profile, but I'm wrong.
2
votes
1answer
89 views

Launch words to my “.profile” not executing

I am trying to add launch words to my profile, however I am receiving "hstart: command not found" sudo vi ~/.profile alias hstart="$HOME/.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin/start-dfs.sh;$HOME/...
0
votes
1answer
73 views

specify the environment variable…bash, how to do

I downloaded software 'github SADIT' and in there it was mentioned to specify the environment variable .... in bash i.e. following so there mentioned something to open .profile and to do something. ...
0
votes
1answer
88 views

Why is my ~/.profile being executed on opening a terminal?

I want some commands to be executed only for login shells so I put them in ~/.profile but they are being executed for every terminal* window I open. How do I find out why this is? I searched ~/.bash*...
3
votes
1answer
724 views

How to share bash aliases between non-root user bash and shell opened by “sudo -i”?

I'm used to use sudo -i and don't have a root password set, i.e. su - doesn't work. I'm looking for a way to share bash aliases between a user shell (e.g. the one opened when I start gnome-terminal ...
0
votes
1answer
477 views

How to start a gnome-terminal without loading profile (like bash --noprofile --norc)

Can I start a gnome-terminal without loading profile? (just like bash --noprofile --norc) Sometime I made mistake in writing .bashrc and find no way (except ssh from another machine) to access that ....