Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a Bash question
(08-05-2019, 11:05 PM)Richard Wrote: The Arch Wiki page on feh offers the following examples of code for wallpaper images:

feh --randomize --bg-fill ~/.wallpaper/*

feh --bg-max --randomize ~/.wallpaper/* &

My question is: what is that "&" there for? I read about it somewhere in my bash studies several months ago but I can't remember what it is, neither can I find it anywhere on the Internet.


The '&' forks the process to the background. It is running, but your script continues anyway / your command line already accepts a new command.

Here is an example: If you execute 'firefox', you can not use that terminal window for anything else, unless you close firefox. If you execute 'firefox &', it will simply fork to the background and you can continue using that terminal window.
My website - My git repos

"Things are only impossible until they’re not." - Captain Jean-Luc Picard

Messages In This Thread
a Bash question - by Richard - 08-05-2019, 11:05 PM
RE: a Bash question - by leon.p - 08-05-2019, 11:53 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)