Skip to content
The Chat Archive
gpt-4.1-mini-2025-04-14· OpenAI LMArena Human Preference 140K

how to disable the classification marker (@, *, etc) after the filenames on Linux when…

  1. User

    how to disable the classification marker (@, *, etc) after the filenames on Linux when using ls?

  2. Assistant

    The classification markers like @, *, /, etc., that appear after filenames when you use ls come from the -F or --classify option. This option appends a character to indicate the file type:

    • / for directories
    • * for executables
    • @ for symbolic links
    • | for FIFOs
    • = for sockets

    How to disable these markers?

    1. Don't use -F or --classify
      Simply run ls without the -F option:

      ls
      

      This will list files without any classification markers.

    2. If you have an alias that adds -F by default
      Sometimes your shell config (like .bashrc or .zshrc) might have an alias like:

      alias ls='ls --color=auto -F'
      

      To check if you have such an alias, run:

      alias ls
      

      If it shows ls='ls --color=auto -F' or similar, you can:

      • Use \ls to bypass the alias:
        \ls
        
      • Or run ls with the --no-classify option (if supported):
        ls --no-classify
        
      • Or temporarily unalias ls:
        unalias ls
        ls
        
    3. Explicitly disable classification with --no-classify
      GNU ls supports the --no-classify option to disable the classification markers even if -F is set by default:

      ls --no-classify
      

    Summary

    • To disable classification markers, avoid -F or use --no-classify.
    • Check for aliases that add -F and modify or bypass them if needed.

    If you want me to check your current alias or help you modify your shell config, just ask!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.