environment variable

  1. D

    How to use Appimage correctly with .desktop

    Well, I'm reinforcing the question because of Tahoma2D, since it contains external dependencies through attached folders in the “Tahoma2D” folder next to the appimage in question. When I want to create the .desktop for the appimage, and when I start it, the error “Undefined or Empty:” appears...
  2. B

    Solved Problem assigning command output to variable

    Hi! I'm writing a shellscript to check whether a server is reachable via SSH. I assign the SSH command output to a shell variable so I can tell if it works or not. I also limit the time with the timeout command. So my script looks like this: OUTPUT=$(timeout 60s ssh user@server) Possible...
  3. 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...
  4. 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 # #...
  5. 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