Favorite Linux Commands
-
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. -
free -h
-
-
cat <<EOF | sudo tee /home/user/Documents/hello-MangoLassi.txt Hello MangoLassi! EOF
-
history
as of late lol -
@wirestyle22 said in Favorite Linux Commands:
history
as of late lolctrl + r
Searches typed query in command history. -
@travisdh1 said in Favorite Linux Commands:
@wirestyle22 said in Favorite Linux Commands:
history
as of late lolctrl + r
Searches typed query in command history.Pretty much this. Use it all the time.
-
@jaredbusch said in Favorite Linux Commands:
@travisdh1 said in Favorite Linux Commands:
@wirestyle22 said in Favorite Linux Commands:
history
as of late lolctrl + r
Searches typed query in command history.Pretty much this. Use it all the time.
I've been using ZSH and I have it automatically do that.