Favorite Linux Commands
-
@quicky2g said:
Really liking glances.
My Ubuntu install:
sudo apt-get install python-pip build-essential python-dev sudo pip install --upgrade glances sudo pip install bottle
Optional for hardware sensors:
sudo apt-get install lm-sensors sudo pip install PySensors
Just running "glances" at cli got me the interface. Web server worked like this:
sudo glances -w -B 10.1.1.1
Worked at http://10.1.1.1:61208
Ran a few simultaneous web server instances in the background for local network and Hamachi:
sudo glances -w -B 10.1.1.1 & sudo glances -w -B 25.25.25.25 &
Definitely going into rc.local now.
Anyone get https working?
That's really nice. I've never used the web version before, just the cli.
-
@johnhooks said:
@quicky2g said:
Really liking glances.
My Ubuntu install:
sudo apt-get install python-pip build-essential python-dev sudo pip install --upgrade glances sudo pip install bottle
Optional for hardware sensors:
sudo apt-get install lm-sensors sudo pip install PySensors
Just running "glances" at cli got me the interface. Web server worked like this:
sudo glances -w -B 10.1.1.1
Worked at http://10.1.1.1:61208
Ran a few simultaneous web server instances in the background for local network and Hamachi:
sudo glances -w -B 10.1.1.1 & sudo glances -w -B 25.25.25.25 &
Definitely going into rc.local now.
Anyone get https working?
That's really nice. I've never used the web version before, just the cli.
Just shows how little I've actually dug into it beyond running sensor-config first, I didn't realize it had another display available. The command line version works so well, and it made so I wasn't jumping between top, iftop and iotop all the time. I was a happy geek.
-
@travisdh1 said:
@johnhooks said:
@quicky2g said:
Really liking glances.
My Ubuntu install:
sudo apt-get install python-pip build-essential python-dev sudo pip install --upgrade glances sudo pip install bottle
Optional for hardware sensors:
sudo apt-get install lm-sensors sudo pip install PySensors
Just running "glances" at cli got me the interface. Web server worked like this:
sudo glances -w -B 10.1.1.1
Worked at http://10.1.1.1:61208
Ran a few simultaneous web server instances in the background for local network and Hamachi:
sudo glances -w -B 10.1.1.1 & sudo glances -w -B 25.25.25.25 &
Definitely going into rc.local now.
Anyone get https working?
That's really nice. I've never used the web version before, just the cli.
Just shows how little I've actually dug into it beyond running sensor-config first, I didn't realize it had another display available. The command line version works so well, and it made so I wasn't jumping between top, iftop and iotop all the time. I was a happy geek.
The mobile version is pretty slick too. Only reason I tried the web version was because of the screenshot on their website:
-
I like...
du -shx * | sort -n
-
So @travisdh1 reminded me of it this morning, but I use
watch
a lot. I also usepv
because no one likes sitting and waiting for dd to finish and not know your progress. -
Haven't used PV. I do use watch a bit.
Because of this thread I've been conditioning myself to use glances. It really is very useful.
-
@scottalanmiller said:
Haven't used PV. I do use watch a bit.
Because of this thread I've been conditioning myself to use glances. It really is very useful.
That's really all I use pv for, I know people use it for other stuff, but that's all I really need it for.
-
@scottalanmiller said:
Haven't used PV. I do use watch a bit.
Because of this thread I've been conditioning myself to use glances. It really is very useful.
Glad to hear someone else like it!
-
@johnhooks So, you just use
pv dd if=/dev/urandom of=/dev/sda bs=512k
That's actually really handy.
-
@travisdh1 said:
@johnhooks So, you just use
pv dd if=/dev/urandom of=/dev/sda bs=512k
That's actually really handy.
YOu have to pipe it in, it's a strange syntax
dd if=/dev/zero | pv | dd of=/dev/sda
Also any flags or arguments go before the first pipe.
-
Very odd indeed.
-
@johnhooks said:
@travisdh1 said:
@johnhooks So, you just use
pv dd if=/dev/urandom of=/dev/sda bs=512k
That's actually really handy.
YOu have to pipe it in, it's a strange syntax
dd if=/dev/zero | pv | dd of=/dev/sda
Also any flags or arguments go before the first pipe.
That is a bit odd. Still handy tho.
-
Sample output.
-
My favourite linux command is "ls"
"cd" -
-
@johnhooks said:
@Lakshmana said:
My favourite linux command is "ls"
"cd"I use those quite a bit also.
I use them all the time, doesn't mean I like them. At least ls is shorter than dir.
-
This is also helpful, diff is confusing unless you use some flags.
diff -y -W 70 file file2
It makes viewing changes much easier. Below is a screenshot. The pipe shows there is a difference in the line, and the < or > show that there is a line added or subtracted.
-
@travisdh1 said:
@johnhooks said:
@Lakshmana said:
My favourite linux command is "ls"
"cd"I use those quite a bit also.
I use them all the time, doesn't mean I like them. At least ls is shorter than dir.
I always end up typing dir on my linux machines and ls on my windows machines.... it just frustrates me...
-
Back in the day, one of my faves was "rn"
-
@brianlittlejohn Switch to powershell and always use "ls"