Giter Club home page Giter Club logo

Comments (3)

bkmgit avatar bkmgit commented on August 25, 2024

Thanks for the suggestion. it is introduced in 02-filedir.md and also used extensively in 03-create.md. Other options for ls are introduced as well. In cases where color highlighting is not available ls -F does seem useful to distinguish between files and directories when someone is new to the shell. Timestamp information, file size information and listing hidden files/folders is also introduced but is more helpful for intermediate users.

from shell-novice.

ernstki avatar ernstki commented on August 25, 2024

Would a quick example using ls -a, ls -l, or ls -al in 02-filedir.md be an acceptable compromise? I'd be willing to do the PR.

On a personal note, ls -F is useful enough to me that I have put alias ls='ls -F' in my login scripts for decades, and now do the same in the login scripts for my lab. Even if LS_COLORS is set up properly, the specific colors used can differ between distros and OSes, so the -F signifiers are still the only reliable indicator of symlinks and directories, unless you use ls -l.

To preempt new users' temptation to parse the output of ls from scripts, we introduce find as the "right tool for the job" early in our onboarding training.

from shell-novice.

bkmgit avatar bkmgit commented on August 25, 2024

From #1351 mentioning case may also be helpful and ls -F seems a good choice for this. Using ls -al is helpful. A pull request would be appreciated.

from shell-novice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.