this post was submitted on 16 Feb 2024
645 points (100.0% liked)

196

16444 readers
2047 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
645
Rule for Beginners (lemmy.world)
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]
 

cross-posted from: https://lemmy.dbzer0.com/post/14479799

Linux Best Practices

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 29 points 8 months ago (2 children)

In 20+ years of linuxing, I've never thought about putting the f first until now.

[–] [email protected] 2 points 8 months ago (3 children)

Imagine my mixed emotions when I’ve been doing ‘ls -la’ since I remember and watch someone do ‘ls -al’.

[–] [email protected] 2 points 8 months ago

I cut my teeth on DOS. I use dir instead of ls. Please don't shame me.

[–] [email protected] 1 points 8 months ago

I use -al because it's in alphabetical order and reminds me of "all".

[–] [email protected] 1 points 8 months ago

I always do - lha or -la, but sometimes I did -a and I want the L, so I reuse the old command and add a l, making it -al.

[–] [email protected] 1 points 8 months ago

I always put the f last, as in first the whole command, then go back and write the -rf, just because if I accidentally press enter I don't want an uncompleted path to be destroyed.