My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
tdTrX@lemmy.ml to Linux@lemmy.mlEnglish · 2 days ago

How to run firefox -p command and have firefox opened after closing the terminal like WIndows Run box.

message-square
message-square
20
fedilink
11
message-square

How to run firefox -p command and have firefox opened after closing the terminal like WIndows Run box.

tdTrX@lemmy.ml to Linux@lemmy.mlEnglish · 2 days ago
message-square
20
fedilink
  • tdTrX@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 days ago

    ~$ firefox -p &; disown bash: syntax error near unexpected token `;’

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 days ago

      just omit the ;

      firefox -p & disown

    • felsiq@piefed.zip
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      Looks like I’ve gotten too spoiled with zsh, I guess that doesn’t work with bash. Doing it in two separate commands should work tho, ie firefox -p & and then disown

      • aliceitc@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        2 days ago

        it should be enough to put a space between & and ; like this: firefox -p & ; disown but I’m not 100% sure.

        I’m also very spoiled by zsh, and I also remember encountering this issue.

        • felsiq@piefed.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          I actually started up bash to test this when op first responded, and the space had the same problem

          • aliceitc@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            2 days ago

            Thanks for the correction.

            I read the bash documentation and I think you simply don’t need the ;. The & is already a command separator, just like ;

            Tested with bash: sleep 100 & echo test prints right away.

            https://www.gnu.org/software/bash/manual/bash.html#Lists

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 days ago

        deleted by creator

    • Liketearsinrain@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      deleted by creator

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 779 users / day
  • 3.63K users / week
  • 6.24K users / month
  • 14.4K users / 6 months
  • 1 local subscriber
  • 63.9K subscribers
  • 8.78K Posts
  • 219K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org