environment variable

  1. D

    Is there a way to store long commands in an env variable?

    I want to simply run the long command below. docker ps -a --format "table {{.Images}}\t{{.Ports}}" export view='docker ps -a --format "table {{.Images}}\t{{.Ports}}"' echo $view result But When I run the real variable, I get an error $view Result end Error code "docker ps" accepts...
  2. A

    Arch, i3: Can't find or change environment variables

    I want to change some of my default applications. Following this page on the ArchWiki, I went into my /etc/environment by sudo emacs /etc/environment file to change these default application variables (e.g. EDITOR=emacs). But it's bare of these: # # This file is parsed by pam_env module # #...
  3. G

    Differences between bash, bash -l, su username, su - username, sudo -s -u username, sudo -i -u suername ?

    Hello, I am a newbie in Linux and am studying the bash shell. I set an environment variable A1=100 (export A1=100). After that, I executed each commands in the title. The username is the same one as the one I am logging in. What I expected is: commands executed value of A1 bash -l su -...
Top