Favorite Linux Commands
-
So I have to say my top favorite linux commands (universally speaking)
sudo
history
wgetThat's my top three, I use them constantly, so I guess that makes them my favorites, right?
-
What about the ever popular reboot?
-
That is not a favorite, I try to avoid rebooting my systems if they don't absolutely need it.
-
In addition to the 3 you listed.
glances - the shell system monitor to use, everything including temp sensors if configured. Replaced htop, iftop, and iotop for me.
screen - because it's just handy to be able to leave programs running and logout at the same time. -
@DustinB3403 said:
That is not a favorite, I try to avoid rebooting my systems if they don't absolutely need it.
I reboot pretty much everything, including the bare metal hypervisor, at least every other month.
-
@JaredBusch said:
@DustinB3403 said:
That is not a favorite, I try to avoid rebooting my systems if they don't absolutely need it.
I reboot pretty much everything, including the bare metal hypervisor, at least every other month.
Even once a month, I'd not consider it a favorite. A necessary evil, yes. Gotta keep the hardware in check. Glances, screen, sudo, wget, and crtl+r(history search) get used almost every time I hit a server. So minimum of 3 times a day.
-
@DustinB3403 said:
That is not a favorite, I try to avoid rebooting my systems if they don't absolutely need it.
that's a bad practice. Weekly or monthly are the only two cycles I'd consider. If you haven't rebooted recently, you don't know that it is coming back after a disaster.
http://www.smbitjournal.com/2011/02/why-we-reboot-servers/
Uptimes of longer than 30 days should be an alert, something to worry about.
-
Glances, tmux, and I use find a lot
-
"sudo !!", "tail -f", the unholy trinity that is "grep/awk/sed", and vim (all from within tmux).
-
-
@coliver said:
@travisdh1 said:
crtl+r(history search)
This one I didn't know this will be extremely helpful.
Ya it's nice, ctrl+a, ctrl+e, and ctrl+d are nice too so you can stay at "home" on the keyboard.
-
@RamblingBiped said:
"sudo !!", "tail -f", the unholy trinity that is "grep/awk/sed", and vim (all from within tmux).
I don't use awk as much as I should, I essentially use it for a glorified csv reader haha
-
http://www.tecmint.com/20-funny-commands-of-linux-or-linux-is-fun-in-terminal/
"sl" is one of my favs.
-
I use SNMPv3 alot from the CLI:
snmpbulkwalk -v 3 -u myusername -a SHA -A myauthpass -l authPriv -x AES -X myprivpass 10.1.1.1 system
-
Hardware commands are always great:
https://www.maketecheasier.com/gather-hardware-information-in-linux
lspci
Anything in /proc
I LOVE LOVE LOVE htop
-
I honestly don't like htop very much. I prefer regular top. I find the output more useful.
-
@scottalanmiller said:
I honestly don't like htop very much. I prefer regular top. I find the output more useful.
htop works much better to see multi-CPU utilization though. Filtering is really nice too.
-
@quicky2g said:
@scottalanmiller said:
I honestly don't like htop very much. I prefer regular top. I find the output more useful.
htop works much better to see multi-CPU utilization though. Filtering is really nice too.
Ah, I never find CPU utilization to be something that I need to watch. Looks neat and impressive on the screen, but once I know the percentage of CPU, I don't care about seeing a chart, but I need to see load numbers, processes and memory stats.
-
I use dd a lot
-