this post was submitted on 17 Oct 2023
1098 points (98.8% liked)

linuxmemes

20771 readers
1591 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 21 points 11 months ago (2 children)

I feel dirty for still using history | grep ls lol

[–] [email protected] 3 points 11 months ago

I usually alias that to "bastard", I agree with a very dirty feeling.

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago)

What if history only shows the last 10-15 entries? You might have to actually type the location of the history file or find out if history has any command line switches. (Does it have any switches? Dunno.)

Edit: I think CIS Benchmarks recommended limiting bash history. Regardless, I have seen some installations that only show an abbreviated bash history by default.