Questions tagged [.profile]

.profile is the local shell initialization script for Unix shells (such as sh, ksh, bash and zsh). $HOME/.profile, also known as ~/.profile, is run exactly once per session -- when you login. As it runs after system wide /etc/profile script, the typical thing you want to do in this script is set, or modify, environment variables. If you set a shell option or alias in this script, it will not be propagated to a subshell.

Like /etc/profile, ~/.profile runs automatically at startup, and it can be rerun after modification using the source command.

97 questions
0
votes
1 answer

Use dynamic library in dynamic library

I am always using QDesignerCustomWidgetInteface. I want to use two kinds of CustomWidget in another CustomWidget to combine two of them so that I need not to write some codes again. So I write codes as below in project file: LIBS +=-L./debug…
0
votes
1 answer

Permission denied when starting .bashrc on ubuntu on windows

I wanted to add a path to my .bashrc file on Ubuntu on Windows. Since then, I get always: /home/gian1312/.bashrc: Permission denied I deleted all my changes. It did not help. Then I opened the .profile file to add the path there. --> Now I…
0
votes
2 answers

Raspberry pi Jessie: run source ~/.profile and workon cv at start-up

I installed Raspbian Jessie on a Raspberry Pi 2 and then I added virtualenv and installed python3 and opencv3. Now, I would like to make a python script runnable at start-up. Sometime ago, I had a Raspberry pi working without virtualenv and…
panda
  • 9
  • 3
0
votes
1 answer

VS Code: Is there a way to make a project that opens bash config files

I want to quickly be able to launch a VS Code project that contains 3 files: ~/.bash_profile ~/.profile ~/.bashrc as i frequently want to edit all 3 at once if I need to tweak things. Is there a way to make a project out of the 3, and then be able…
JGFMK
  • 8,425
  • 4
  • 58
  • 92
0
votes
1 answer

Issue with ~/.profile after fixing NPM permissions

Installed Node.js on OS X. Fixed the permissions (i.e. sudo required) issue by changing NPM's default directory (https://docs.npmjs.com/getting-started/fixing-npm-permissions see Option 2). However, after booting up commands like grunt are not…
Jason
  • 4,079
  • 4
  • 22
  • 32
0
votes
1 answer

bake cakephp configure console profile

i've just installed CakePHP and I'm pretty new with Mac,Shells and Terminal.. Cakephp is now running correctly and as stated by my tutorial (Beginning-Cakephp-from novice to professional) i'm now trying to configure console profile to run Bake (i'm…
luca
  • 36,606
  • 27
  • 86
  • 125
0
votes
2 answers

conda command not found. The .profile and "echo $PATH" seem however okay

I've blindly installed numerous times Python, admittedly without fully knowing what I was installing and where. I figured that now before I encounter even more problems that I need to tidy up my environment a bit. In Terminal, I used the command…
pymat
  • 1,090
  • 1
  • 23
  • 45
0
votes
1 answer

File Permission flag 'setuid' is being ignored

I wrote this script, basically what it does is to drop the ram caches. I know it's messy - all the "echo '' that you see are just a work around to make it cleaner, I like some blank lines between the commands. #!/bin/bash free -m && wait echo '';…
0
votes
1 answer

How to automatic load .profile in Solaris 10

I have set some of my default PATH that I wanted to run in the .profile. However the machine forget it everytime I logout and I have to reload the profile everytime by typeing source ./.profile Is there a way to set it to startup or something…
newbieprogrammer
  • 848
  • 7
  • 23
  • 46
0
votes
1 answer

bash script to run lftp with ftp path

I'm trying to write a bash alias/function that takes an ftp path and runs lftp to pget the file. Given a remote path, with spaces encoded as %20 like: sftp://ftp.example.com/Some%20Folder/BigFile.mov I have this snippet to clean up the %20 and…
Dan
  • 1,257
  • 2
  • 15
  • 31
0
votes
1 answer

NFS home / .profile / 3 flavors of UNIX : best practices?

Three flavors of UNIX: Linux, Solaris, IRIX... one NFS mounted home directory. I'd like to have a (slightly) different .profile behavior based on the OS that I'm connecting to. I can hack something together, but I'd like to not re-invent the wheel…
Trueblood
  • 515
  • 2
  • 5
  • 11
0
votes
1 answer

/.profile vs. /.bashrc for hadoop variables on ubuntu14.04

I am installing apache hadoop 2.7 on Ubuntu 14.04. In order to make sure hadoop variables are available every time Ubuntu starts, should I modify /.profile or /.bashrc? by hadoop variables I…
RedNay8080
  • 31
  • 5
0
votes
1 answer

Unable to install modman, .profile is missing

https://github.com/colinmollenhour/modman/blob/master/README.md I am trying to install modman. First I install via: bash < <(curl -s -L https://raw.github.com/colinmollenhour/modman/master/modman-installer) modman is created at…
aahhaa
  • 2,240
  • 3
  • 19
  • 30
0
votes
1 answer

Prompt in .zshrc

When I start my terminal emulator, it either creates a new tmux session (named $(whoami)) or, if it already exists, attaches to that. However, I would like the ability to choose to create a new session if there is already one active. The previous…
Xophmeister
  • 8,884
  • 4
  • 44
  • 87
0
votes
1 answer

I dont get anything after firing DPUMP - IMPDP command

ORACLE_HOME="/oravl01/oracle/11.2.0.4" impdp /oravl01/oracle/11.2.0.4/bin/impdp AST3APPO/astdb90@CNVABP90 DIRECTORY=DPUMP DUMPFILE=expdp_CUSTOMER_DOX_%u.dmp LOGFILE=CUSTOMER.log JOB_NAME=CUSTOMER_IM TABLE_EXISTS_ACTION=APPEND…