Comments (3)
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.
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.
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)
- Glossary "shell" term has a broken anchor link in its text HOT 1
- removing unneeded files solution not quite right HOT 1
- Link to installation instructions points to a workshop template HOT 6
- Use consistent path settings
- Other Options for Finding Files in Episode 7
- Where do we get 1518 files? HOT 1
- Broken link to regex lesson HOT 6
- Consider moving callout about long/short options
- macOS now uses Zsh as default shell HOT 2
- Grammar Mistake in "07-find.md" at "Matching and Subtracting" solution.
- A detail in Unix Shell Pipes and Filters Lesson HOT 3
- Ep. 02: Link to Glossary not resolved
- Ep. 05: Remove redundant paragraphs HOT 1
- Broken link in list of external resources HOT 1
- Missing spaces between words HOT 2
- Broken link in Reference HOT 1
- Clarify statement "the total count of each type of animal" in "Pipes and filters" challenge HOT 1
- Checkout Recommendation for Trainee HOT 4
- Note that we are directing people to an Incubator (un-official) lesson HOT 1
- Unix Shell Script, Finding things, Tractknig a species, grep -r HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shell-novice.