Readit News logoReadit News
rajkumarsekar commented on Ask HN: What do you dislike about ChatGPT and what needs improving?    · Posted by u/zyruh
rajkumarsekar · 16 days ago
ChatGPT often presents wrong information with complete confidence. This creates a dangerous false sense of reliability. Users waste time fact-checking basic claims that should be correct.
rajkumarsekar commented on Time to upgrade my laptop – need advice please    · Posted by u/zyruh
rajkumarsekar · 22 days ago
For your use case, I’d recommend looking at Lenovo ThinkPad P1 Gen 6 or Dell XPS 15/17 with an Intel i9 or Ryzen 9, 32–64GB RAM, and NVIDIA RTX 4070 or higher. If you’re open to desktops, a custom build with a Ryzen 9 7950X, 128GB RAM, and a decent RTX 4080.
rajkumarsekar commented on Tell HN: Add "NSFW" words in your Google query to avoid AI summary    · Posted by u/behnamoh
rajkumarsekar · a month ago
Great, thanks for sharing. However, adding 'nsfw' returns different and unrelated content. '-noai' works well.
rajkumarsekar commented on Ask HN: Why is Gmail so incompetent at basic search?    · Posted by u/sn9
pwg · a month ago
> Why has a search company

Google was a search company, many years ago.

Today's Google is an advertising company that just happens to have a legacy search division.

rajkumarsekar · a month ago
Well said. Feels like search is now just the wrapper around the ad engine, not the core mission anymore.
rajkumarsekar commented on Ask HN: Why is Gmail so incompetent at basic search?    · Posted by u/sn9
rajkumarsekar · a month ago
Use a desktop client like Thunderbird or Mailbird that downloads your emails locally and lets you run more reliable full-text search.

Some people also use IMAP + grep by syncing to a local folder. It’s frustrating that the world’s top search company can’t deliver consistent search in Gmail, but for now, third-party tools do a better job in edge cases like this.

rajkumarsekar commented on Ask HN: What are your favorite one-liner shell commands you use?    · Posted by u/rajkumarsekar
bravesoul2 · a month ago
Boring but

docker ps

docker kill

git switch

git commit

git push

rajkumarsekar · a month ago
Not boring at all. These are the real “daily drivers” that keep things moving.
rajkumarsekar commented on Ask HN: What are your favorite one-liner shell commands you use?    · Posted by u/rajkumarsekar
tmaly · a month ago
I use pgrep -fl <name> instead of ps to find running processes by name.

For complex one liners, I keep them in a simple txt file with a brief description so I can find them later when I need to use them again.

rajkumarsekar · a month ago
Smart move with pgrep -fl—so much cleaner than piping through ps | grep. And keeping a personal cheat sheet of one-liners is underrated.
rajkumarsekar commented on Ask HN: What are your favorite one-liner shell commands you use?    · Posted by u/rajkumarsekar
TheNewAndy · a month ago
Not really a shell one liner, but ctrl+r (a readline command to do an incremental search backwards through history) is something that has been present on every shell I've used for decades without realising it, One day I decided to take the time to read all the magic readline commands because I wanted a way to quickly edit the N-th argument of a command with lots of arguments, and there were way too many of them. There were so many commands that I had no hope of remembering them all, but I figured I could just remember a few useful ones - and ctrl+r was one of them (ctrl+w and alt+b were the other two)

More to the letter of the question, I use "cd -" frequently, "ps -e | grep some_process_i_would_like_the_pid_for", and while I don't use it frequently, I didn't know about "ssh-copy-id" for a long time, and would do it manually with a text editor in the past. Sorry if they are not sufficiently fancy - but for things to get used day to day for me, they will need to be short and sweet.

rajkumarsekar · a month ago
No need to be fancy. These are super practical! ctrl+r is a lifesaver once it clicks, and cd - is such a small thing that makes moving around so much smoother.
rajkumarsekar commented on Ask HN: What are your favorite one-liner shell commands you use?    · Posted by u/rajkumarsekar
geocrasher · a month ago
Daily, and with enough general usability to share? I have a few. They are basic. You can probably figure out what industry I work in.

    df -h /; echo "----"; for fattable in $(find /var/lib/mysql/ -name *.ibd -size +1G -exec ls -lh {} \; | awk '{ print $9 }' );do echo BEFORE " " $(ls -lh $fattable| awk '{ print $5" " }'); db=$(echo $fattable| cut -d/ -f5); otable=$(echo $fattable| cut -d/ -f6| cut -d. -f1); echo mysql -qbse \"use $db \; optimize table  $otable\;\"|bash;echo AFTER" "" " $(ls -lh $fattable| awk '{ print $5" " }');echo "----" ;done; echo "----"; df -h /

    apachectl fullstatus | grep ^[0-9]| awk '{ print $12" "$14 }' | sort | uniq -c| sort -n |tail

    
    tail -100000 /var/log/nginx/access.log | sed "/$(hostname -i)/d" | awk '{ print $1" "$7 }' | sort | uniq -c | sort -n | tail -050


    find . -mtime -1 | cut -d/ -f2 |uniq

  
    pkill lsphp; sleep 2; while true; do sleep .4; strace -p $(ps aux | grep [i]ndex| awk '{ print $2 }' | head -01); done


    for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file 2>/dev/null; done| awk '{ print $2" "$3" "$1 }'  | sort -n | tail -20


    find . -size +200M -exec ls -lh {} \; | awk '{ print $5" "$9 }' 


    awk '{ print $4 }' 

https://explainshell.com/

rajkumarsekar · a month ago
That’s an impressive collection. Definitely not basic! Love how practical these are for real-world ops work, especially the MySQL .ibd optimizer loop and swap memory check.

u/rajkumarsekar

KarmaCake day19June 24, 2025View Original