Questions tagged [profile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
11 views

I am not sure about correct way to export PATH

I have Java and Springboot cli added to PATH however, when source /etc/profile it gives error. And on restarting PC, BASH is not loading. My export in /etc/profile export JAVA_HOME=/usr/lib/jvm/java-1....
user avatar
0 votes
1 answer
41 views

loading variables from bashrc or bash_profile does not work

I have a script with some logic to check if the script is being run in interactive mode or not. Both bashrc and bash_profile contain the same environment variables I exported. I want to load these ...
user avatar
1 vote
0 answers
46 views

Where PATH=~/.local/bin:$PATH should be set in zsh shell?

In my current environment (Fedora35, zsh user shell, oh-my-zsh, pyenv), ~/.local/bin is not present in the path. The question is where is the "right" place to add ? Several options are ...
user avatar
  • 21
0 votes
0 answers
49 views

Why is the lifespan of variables exported in .bashrc and .profile different?

If a variable is exported from .profile, it is present in all the terminals I open after log in, even though the variable was exported only once at the log in time. If a variable is exported from ....
user avatar
  • 1
0 votes
1 answer
301 views

What sources /etc/profile?

I think /etc/profile is sourced when the system starts but what sources it? It is not sourced within the .bashrc hierarchy when a user logs in. I am using Ubuntu but I believe this is universal across ...
user avatar
  • 11.7k
0 votes
2 answers
169 views

How can I source environment changes system-wide?

In most *nix environments using bash, you'll change environment variables that are local to your user in ~/.bash_profile or a similar file and then source the changed file in order to make the changes ...
user avatar
  • 1,649
3 votes
1 answer
976 views

Could setting the permission on these files to 600 render my OS unusable? .bash_logout, .bashrc, .profile

I rely heavily on aliases in my .bashrc and it crossed my mind that I could improve my privacy / security and somewhat harden my Ubuntu 20.04 Desktop by changing recursively the permissions of my home ...
user avatar
0 votes
2 answers
122 views

Finding duplicate aliases and functions in a script (.bashrc etc)

This site says that functions are faster than aliases, but he rightly points out that aliases are easier to understand - when you want something very simple and do not need to consider passing ...
user avatar
  • 569
0 votes
0 answers
57 views

How to source /etc/profile for Remote Desktop Sessions

I want to set up a server with some functions and aliases available for all users. I set these up initially in a file in /etc/profile.d and everything was working fine both from: SSH Local desktop (...
user avatar
1 vote
0 answers
48 views

Two Data Entries After Converting BTRFS Profile

I ran the following command on a BTRFS volume in order to convert the data profile from single to DUP (I'm looking to provide duplicate data on this volume to be able to repair possible bit rot ...
user avatar
  • 2,127
7 votes
2 answers
1k views

Why does man complain about a function defined in .profile?

I use Bash 5.1.8. Running man shows the manual page but with the following errors man ps sh: bat: line 10: syntax error near unexpected token `(' sh: bat: line 10: ` *.?(ba)sh)' sh: error importing ...
user avatar
  • 211
1 vote
2 answers
118 views

Gentoo invalid profile

So. Been going at the gentoo install without proper instructions until very recently. After emerge-webrsync stage of the install a message pops up saying "your current profile is invalid". ...
user avatar
0 votes
2 answers
283 views

Konsole does not have permission to save this profile to /home/aravindakrishnan/.local/share/konsole/Profile 2.profile

I'm using KDE Neon on Debian. When I'm trying to change my profile It says Konsole does not have permission to save this profile to /home/username/.local/share/Konsole/Profile 2.profile: ls -l /home/...
user avatar
1 vote
1 answer
52 views

Need to set a new default path for command in Linux

Basically, what the title says. I'm setting up a new version of LUA and HAProxy under my user account in Redhat, so the bin directory that contains it is /home/user1/testing/usr/local/bin. I've ...
user avatar
  • 133
2 votes
1 answer
76 views

How can I configure tmux to make only the first window of each session load a login shell (& all other subsequent panes/windows as non-login shells)?

Hopefully the title of this post is descriptive enough. As well-documented in the tmux manuals, tmux launches a login shell every time a new tmux window or pane (split) is launched. Instead, how can I ...
user avatar
1 vote
1 answer
44 views

Simple Process Profiling Tool

I need to profile a linux process and record high water marks for cpu/mem and also ideally produce a usage graph. Are there any simple command line tools to achieve this? I have looked at top command ...
user avatar
  • 111
0 votes
0 answers
38 views

.profile file loaded on starting VSCode

in my .profile i have these two lines daemon plank daemon autokey what these basically do is start plank(dock application) and autokey(custom shortcut maker) on startup, it is working fine but the ...
user avatar
-4 votes
1 answer
92 views

Trying to understand .bashrc, .profile, etc.. files

I am trying to understand the relation among the files .bashrc, .profile, .bash_profile, etc... as well as the meaning of login/non login shells, interactive/non interactive shells, etc... Every ...
user avatar
  • 93
0 votes
1 answer
358 views

How to start Firefox multiple isolated sessions with same profile?

I use proxychains utility with firefox. I want to start the firefox profile twice, but with other proxychains parameters. But I can't, when I try to run the second instance of firefox with the same ...
user avatar
  • 3
0 votes
0 answers
152 views

Exporting environment variables in `.profile` with a bash and-list construct

I am using gdm3 as my login manager. Upon login, all the PATH modifications in my .profile are set and exported correctly. For example, lines like these below work fine: if [ -d "$HOME/bin" ]...
user avatar
3 votes
1 answer
483 views

Debian 10: Setting PATH variable inside .profile does not work

I'm currently running Debian 10 Xfce and I would like to update my PATH variable to include /opt/bin and ~/.local/bin. As per these - 1 2 answers, I put the following lines in my ~/.profile file: if [ ...
user avatar
  • 177
0 votes
0 answers
92 views

How to securely store credentials needed in a profile.d script?

Disclaimer: I'm working on Ubuntu 20.04, but I assume my question is unrelated to a specific Linux distribution. I've searched the Internet for quite some time and found lots of other similar ...
user avatar
  • 123
1 vote
0 answers
78 views

Keyboard conf at `/etc/profile` does not work

This is a script that I can source or run to setup my keyboard layout: #!/bin/bash # Testing to only apply the layout to Kinesis keyboard. # Get Device ID with: `xinput -list | grep -i key debug_out=/...
user avatar
  • 820
1 vote
1 answer
113 views

what makes the different behaviour between zsh login init and manually sourcing profile script?

I want to add a function to precmd_functions at ZSH login and avoid duplication. Since /etc/zprofile source the /etc/profile, which then source all the *.sh script under /etc/profile.d/, my solution ...
user avatar
0 votes
2 answers
442 views

Prevent ``/etc/profile.d`` from being sourced on login

I just noticed my environment is behaving erratically because at some point this alias got introduced in /etc/profile.d/vim.sh: $ command -v vim alias vim='__vi_internal_vim_alias' Looking through ...
user avatar
  • 1,602
1 vote
1 answer
405 views

Why does Centos7 run /etc/profile.d scripts from both /etc/profile AND /etc/bashrc?

Centos7 has the following in /etc/profile: for i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; do if [ -r "$i" ]; then if [ "${-#*i}" != "$-" ]; then ...
user avatar
  • 210
1 vote
2 answers
42 views

Why can't I source function definitions into .bashrc read by .profile?

I have 3 config files: .bashrc sources .bashrc_common, and .profile sources .bashrc. Unfortunately, upon login to Gnome I get an error message saying that in .bashrc command foo was not found. But if ...
user avatar
1 vote
2 answers
176 views

unshare -r: Failed to connect to bus: Operation not permitted

When I run unshare -r, I get Failed to connect to bus: Operation not permitted The id still shows I'm root, ❯ id uid=0(root) gid=0(root) groups=0(root),65534(nogroup) What does this error/warning ...
user avatar
  • 22.9k
-1 votes
1 answer
50 views

Remove starting command from .profile

Where can be command that produces this error? These are my dot files: echo .* .3T .CFUserTextEncoding .Rapp.history .Trash .android .angular-config.json .atom .atomic .babel.json .bash_history ....
user avatar
0 votes
3 answers
2k views

Ubuntu terminal not showing path

I have added one line in bashrc and after that terminal is not working as expected, no path is showing and I am unable to run any command: Below line i have added in bashrc: . ~/.profile
user avatar
3 votes
1 answer
659 views

With systemd, should environmental variables ever be declared in ~/.profile or ~/.bashrc?

It seems to me like with environment.d now sourcing environmental variables in ~/.config/environment.d/*.conf that we should no longer have environmental variables declared in ~/.bashrc or ~/.profile ...
user avatar
  • 22.9k
3 votes
1 answer
1k views

bash: __vte_prompt_command: command not found

Everytime I open a command terminal or press enter the above error message show up.Does no harm but very annoying. ~/.bash_profile is here # .bash_profile # Get the aliases and functions if [ -f ~/....
user avatar
0 votes
1 answer
119 views

My terminal has stopped sourcing my .profile file

I installed starship (https://starship.rs/) the other day to make my prompt more useful, and as cool as it is, it broke a number of things about my terminal so I uninstalled it. Unfortunately, even ...
user avatar
  • 551
1 vote
1 answer
710 views

Clarification re: ZSH startup/shutdown files

I just upgraded to macOS Catalina and the new shell is ZSH. So, since it's a fresh start, I'm trying to set up my shell environment with aliases, functions, etc. like I had in bash. I'm trying to ...
user avatar
  • 934
2 votes
2 answers
5k views

centos which file to edit to get .bash_profile running?

I want to know which file to edit in order to launch my .bash_profile when I graphically start the terminal. I am using an AWS Workspace with the following OS and the default MATE terminal. $ cat /...
user avatar
  • 140
0 votes
1 answer
30 views

track environment changes upon login

Is there any way to track which files and which commands are executed when logging in? I've made some changes to the /etc/profile and /etc/bashrc file but they don't seem to be picked up when I login ...
user avatar
  • 400
0 votes
0 answers
318 views

Change NetworkManager connection file location

I'm trying to move the connection profile generated by the Network Manager from /etc/NetworkManager/system-connections to another position and to be able to activate it among multiple sessions after a ...
user avatar
  • 1
1 vote
1 answer
237 views

Use bash when ksh is shell

I have access to several RHEL systems that use Active Directory for user accounts and a NFS mount for home directories. Our login shell is stored in Active Directory and is always /bin/ksh. I want ...
user avatar
1 vote
1 answer
259 views

Physical buffer in terminal is getting misaligned with display in oh-my-zsh configuration

I have been experiencing an unusual problem in the oh-my-zsh configuration in which the cursor gets out of sync with the text. (I normally work using screen in konsole. For instance on a new terminal ...
user avatar
  • 6,707
3 votes
1 answer
1k views

Why does lightdm source my .profile even though my login shell is zsh?

I am using Linux Mint 19.2 Cinnamon, with ZSH as login shell for my user. When I login, I see that my $PATH includes $HOME/.local/bin two times, even though it is specified only once across all my ...
user avatar
  • 135
0 votes
0 answers
42 views

What license does ~/.profile fall under?

On Unix & Linux, what license governs usage rights for the '.profile' file? Also what entity can be questioned about compliance?
user avatar
  • 1,198
1 vote
1 answer
224 views

On Linux, source different .zshrc files for different apps

Based on three questions: Use different profiles with ZSH (in different terminal apps), but deisgned only for macOS Different tmux configs for different sessions?, but I want to use different .zshrc ...
user avatar
9 votes
2 answers
6k views

SSHing into system with ZSH as default shell doesn't run /etc/profile

I'm experiencing a strange behavior on some of our machines atm. At least, it seems strange to me and my colleagues and we didn't find any explanation for it :) [edit 1] Next paragraph seems to be ...
user avatar
1 vote
0 answers
43 views

Gnome make mouse keys config persistent

I enabled mouse keys in gnome settings and the default mouse pointer was unusable due to its slowness, so I searched and found this command that fixes the problem: xkbset ma 60 10 10 5 2 The problem ...
user avatar
  • 141
1 vote
0 answers
44 views

Can I profile my application's access to physical memory?

I would like to profile how many times my app accessed specific physical memory addresses. For example, PFN | COUNT 0x000123 3 0x000124 5 ... Is there any profiling tool ...
user avatar
18 votes
1 answer
1k views

bash does not know the letter 'p' [duplicate]

My bash does not know the letter p. zsh does though. When I type a p in bash, it simply ignores it, and even pasting in text that contains a p will result in no p in the pasted text. This behavior ...
user avatar
  • 464
0 votes
1 answer
63 views

Script alternative of GUI command executed on login - it should not

Since my main data is not in $HOME, I have made a small (executable) script to start the GUI file manager (caja) in the desired directory and put it in my local executable directory (~/.local/bin): #!...
user avatar
  • 10.8k
0 votes
2 answers
482 views

Confused about Configuring Linux Path Environment /etc/profile.d/*.sh being Executed Twice?

I am trying to set PKG_CONFIG_PATH to CentOS here are the code I tried export |grep PKG_CONFIG_PATH no output, normal... echo "$PKG_CONFIG_PATH" :/usr/local/lib/pkgconfig why there is output here??...
user avatar
7 votes
1 answer
7k views

How to persist environment variables in ash, the Almquist shell?

How can I get ash to load some environment variables on startup? Just put them in /etc/profile /etc/profile is only read for login shells; what about non-login shells, as frequently pop up when ...
user avatar
  • 71
4 votes
1 answer
5k views

How can I make my script in /etc/profile.d to run after all other scripts in same directory?

I'm writing an installer script on Ubuntu for an application which needs multiple parts such as install a specific g++ version, put a script in profile.d, reboot install drivers for some hardware, ...
user avatar

1
2 3 4 5