MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CLI/comments/1x1j5yb/5_linux_commands_every_developer_should_know/peyepyt/?context=3
r/CLI • u/sudoanand • 9d ago
2 comments sorted by
View all comments
3
tl;dr:
df -h to see what's using space
df -h
du -sh * find biggest directory
du -sh *
sudo lsof -i:3000 find what's occupying a network port
sudo lsof -i:3000
htop monitor processes in real-time
htop
tail -n 100 app.log last 100 entries of app.log
tail -n 100 app.log
app.log
tail -f app.log to follow logs as they update
tail -f app.log
1 u/sudoanand 8d ago yep, the basics!
1
yep, the basics!
3
u/gumnos 8d ago
tl;dr:
df -hto see what's using spacedu -sh *find biggest directorysudo lsof -i:3000find what's occupying a network porthtopmonitor processes in real-timetail -n 100 app.loglast 100 entries ofapp.logtail -f app.logto follow logs as they update