Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Mauricio Teixeira馃惂:kubernetes:
Mauricio Teixeira馃惂:kubernetes:
@badnetmask@hachyderm.io  路  activity timestamp 4 days ago

I have some parameters for some Linux commands which are burned in my brain, and work for 95% of my needs:

* tar czvpf (also x)
* rsync -PSavv
* netstat -lntp (also works for ss)

I got used to those way back when during my Service Desk times, and now they're just muscle memory.

Oh. And the one more "modern" is:

* kubectl get events -Aw (btw: "alias k=kubectl")

That's my Kubernetes variation of "journalctl -f" (also previously known as "tail -f /var/log/messages").

How about you? What are yours? 馃槃

#HomeLab #Bash #Linux #Kubernetes @homelab

  • Copy link
  • Flag this post
  • Block
Etam
Etam
@etam@im-in.space replied  路  activity timestamp 2 days ago

@badnetmask
"ps -fAHww" prints a nice process tree.

  • Copy link
  • Flag this comment
  • Block
Jean-S茅bastien Guay
Jean-S茅bastien Guay
@skylark13@mastodon.gamedev.place replied  路  activity timestamp 3 days ago

@badnetmask

Same. tar zxpvf and ps aux are burned in.

And thanks for that one about journalctl! I recently came back to Linux after many years and was wondering what the modern version to follow logs was!

  • Copy link
  • Flag this comment
  • Block
Benjamin
Benjamin
@blindcoder@toot.berlin replied  路  activity timestamp 4 days ago

@badnetmask @homelab Oh, speaking of git:

[alias]
tree = log --decorate --pretty=oneline --abbrev-commit --graph
delete = rm
del = rm

git tree makes nice, coloured trees in the console similar to what gitlab does. git tree --all works, too.
delete and del, self-explanatory.

  • Copy link
  • Flag this comment
  • Block
Mauricio Teixeira馃惂:kubernetes:
Mauricio Teixeira馃惂:kubernetes:
@badnetmask@hachyderm.io replied  路  activity timestamp 3 days ago

@blindcoder
I need to do better with git aliases. 馃槃

  • Copy link
  • Flag this comment
  • Block
Benjamin
Benjamin
@blindcoder@toot.berlin replied  路  activity timestamp 3 days ago

@badnetmask Hah, yeah. I can suggest a few REALLY useful ones:
plul = pull
mrege = merge
psuh = push
commi = commit

馃槄

  • Copy link
  • Flag this comment
  • Block
Krahabors
Krahabors
@krahabors@toot.lv replied  路  activity timestamp 4 days ago

@badnetmask
sdiff -sbWw230
@homelab

  • Copy link
  • Flag this comment
  • Block
Mauricio Teixeira馃惂:kubernetes:
Mauricio Teixeira馃惂:kubernetes:
@badnetmask@hachyderm.io replied  路  activity timestamp 3 days ago

@krahabors
I haven't used sdiff in decades. I'm gonna have to read about these parameters. 馃槃

  • Copy link
  • Flag this comment
  • Block
Krahabors
Krahabors
@krahabors@toot.lv replied  路  activity timestamp 3 days ago

@badnetmask This allows to directly compare side-by-side large files, line-by-line. Works very well for kind of config files I have to deal with, helps to check if changes are only those that were intentionally done.
w230 adjusts to wider displays, sometimes it's 350 characters or more - if lines are long.

  • Copy link
  • Flag this comment
  • Block
Michael
Michael
@mmeier@social.mei-home.net replied  路  activity timestamp 4 days ago

@badnetmask I've got a slight variation of the "netstat" one:

ss -tulnp

And for my Gentoo-based desktop:

emerge -uvaDN world

  • Copy link
  • Flag this comment
  • Block
Mauricio Teixeira馃惂:kubernetes:
Mauricio Teixeira馃惂:kubernetes:
@badnetmask@hachyderm.io replied  路  activity timestamp 3 days ago

@mmeier
The emerge one sounds like you're casting a spell of something. 馃槃

  • Copy link
  • Flag this comment
  • Block
Michael
Michael
@mmeier@social.mei-home.net replied  路  activity timestamp 3 days ago

@badnetmask Yupp, it is a spell indeed - one that brings my fans to their max RPM and gives my desktop PC a good blow-through. 馃榿

  • Copy link
  • Flag this comment
  • Block
Jorge Sanz
Jorge Sanz
@jorgesanz@mapstodon.space replied  路  activity timestamp 4 days ago

@badnetmask @homelab

Ah the aliases

k=kubectl
m=make and j=just
d=docker and dc=docker compose

And a many more for git and docker operations, haha.

Also my username is always j, and my hostname a3 (third laptop at current work)

Sorry for the deviation 馃槄

  • Copy link
  • Flag this comment
  • Block
Mauricio Teixeira馃惂:kubernetes:
Mauricio Teixeira馃惂:kubernetes:
@badnetmask@hachyderm.io replied  路  activity timestamp 3 days ago

@jorgesanz
That's actually interesting. I could probably use "dc", even though it's too close to "bc". We'll see. Thanks!

  • Copy link
  • Flag this comment
  • Block
Carlos Nogueira :debian: 馃嚨馃嚬
Carlos Nogueira :debian: 馃嚨馃嚬
@carlosenog@hachyderm.io replied  路  activity timestamp 4 days ago

@badnetmask @homelab

netstat -tapn
ps -aux
updatedb && locate <file_name>
grep -ri <string> <destination_path>

  • Copy link
  • Flag this comment
  • Block
Mauricio Teixeira馃惂:kubernetes:
Mauricio Teixeira馃惂:kubernetes:
@badnetmask@hachyderm.io replied  路  activity timestamp 3 days ago

@carlosenog @homelab
Interesting note about updatedb/locate: I used to use that a lot, when I kept my computers on all the time and uptatedb ran as a cron job. But with laptops that I keep suspending, and super fast NVMe, I don't worry about this anymore, and just use the regular find. 馃槃

  • Copy link
  • Flag this comment
  • Block
Benjamin
Benjamin
@blindcoder@toot.berlin replied  路  activity timestamp 4 days ago

@homelab @badnetmask
diff -pruN
rsync -arvuP
ls -lrt

  • Copy link
  • Flag this comment
  • Block
Julien Riou
Julien Riou
@jriou@hachyderm.io replied  路  activity timestamp 4 days ago

@badnetmask @homelab `nc -vz -w 2 host port` to test if a flow is open without using telnet

  • Copy link
  • Flag this comment
  • Block
Mauricio Teixeira馃惂:kubernetes:
Mauricio Teixeira馃惂:kubernetes:
@badnetmask@hachyderm.io replied  路  activity timestamp 3 days ago

@jriou @homelab
I use those nc parameters a lot, but I rarely remember on the first attempt. It's still not muscle memory. 馃槃

  • Copy link
  • Flag this comment
  • Block
Stephan
Stephan
@durchaus@mastodon.social replied  路  activity timestamp 4 days ago

@badnetmask @homelab I usually use netstat -tulpn, because it's somehow similar to the German word for tulips 馃尫 (Tulpen), so easier to remember for me.

  • Copy link
  • Flag this comment
  • Block
Astro
Astro
@astro@c3d2.social replied  路  activity timestamp 4 days ago

@badnetmask
- `ps aux`
- `diff -urN`

  • Copy link
  • Flag this comment
  • Block
Coach Spore Diesel
Coach Spore Diesel
@springdiesel@spore.social replied  路  activity timestamp 4 days ago

@astro @badnetmask

ls -lah

Damn, I can't remember my flags for top.

  • Copy link
  • Flag this comment
  • Block
Mauricio Teixeira馃惂:kubernetes:
Mauricio Teixeira馃惂:kubernetes:
@badnetmask@hachyderm.io replied  路  activity timestamp 4 days ago

@astro
Oh. Completely forgot about "ps aux". 馃槃

  • Copy link
  • Flag this comment
  • Block

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About 路 Code of conduct 路 Privacy 路
Bonfire social 路 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct