• FIST_FILLET
    arrow-up
    2
    arrow-down
    0
    ·
    10 months ago
    link
    fedilink

    linux rookie here, what’s the command to reverse an alias then? do you just “alias ls ls” to overwrite it?

    • sndrtj
      arrow-up
      4
      arrow-down
      0
      ·
      10 months ago
      link
      fedilink

      Backlash. \ls would get you regular ls. Note that ls already is aliased on some popular distros with some common flags.

    • Chobbes
      arrow-up
      3
      arrow-down
      0
      ·
      10 months ago
      link
      fedilink

      You can use unalias, or you can use a backslash in front of an aliased command or surround it in double quotes to ignore the alias temporarily.