Favorite Linux Commands
-
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"
-
This thread deserves more attention than it gets. I was getting annoyed with dd and no status display today (lots of Raspberry Pis to image.) This time I know the exact size of the sd cards being imaged tho, so pv is very helpful.
dd if=/home/comtech/rpi.img | pv -s 16g | dd of=/dev/mmcblk0 bs=4k
[root@localhost comtech]# dd if=/home/comtech/rpi.img | pv -s 16g | dd of=/dev/mmcblk0 ^[34MiB 0:01:37 [ 249KiB/s] [==> ] 2% ETA 1:17:2
-
@travisdh1 said in Favorite Linux Commands:
This thread deserves more attention than it gets. I was getting annoyed with dd and no status display today (lots of Raspberry Pis to image.) This time I know the exact size of the sd cards being imaged tho, so pv is very helpful.
dd if=/home/comtech/rpi.img | pv -s 16g | dd of=/dev/mmcblk0 bs=4k
[root@localhost comtech]# dd if=/home/comtech/rpi.img | pv -s 16g | dd of=/dev/mmcblk0 ^[34MiB 0:01:37 [ 249KiB/s] [==> ] 2% ETA 1:17:2
This isn't installed by default on some systems, but i easy & quick to add.
-
Mine has been grep and cat.
-
When I want to use virt-manager from my Mac.
ssh -Y username@ip-address virt-manager &
-
I use
^
quite frequently any more.