sudo
Zoxide, dust, fd, rg, btm, tokei. So many newer Rust tools that are way better than the old stuff.
git
I really like how nushell can parse output into it's native structures called tables using the detect
command.
Unlike string outputs, tables allow for easy data manipulation through pipes like select foo
will select foo key and you can filter and even reshape the datasets.
This is great if you need to work with large data pipes like kuberneters so you can do something like:
kubectl get pods --all-namespaces | detect columns | where $it.STATUS !~ "Running|Completed" | par-each { |it| kubectl -n $it.NAMESPACE delete pod $it.NAME }
This looks complex but it parses kubectl table string to table object -> filters rows only where status is not running or completed -> executes pod delete task for each row in parallel.
Nushell take a while to learn but having real data objects in your terminal pipes is incredible! Especially with the detect
command.
There's are few more shells that do that though nu is the most mature one I've seen so far.
Neofetch
I just think it's neat.
rsync
I use it to backup important work to an external drive.
flac -t *
exit
tldr
is great. Basically a crowd-sourced alternative to man
with much more concise entries. Example:
$ tldr dhcpcd
DHCP client.
More information: <https://roy.marples.name/projects/dhcpcd>.
Release all address leases:
sudo dhcpcd --release
Request the DHCP server for new leases:
sudo dhcpcd --rebind
Well....slap my ass and call me Mary.....
Thanks kind internet stranger!
Woah, that's dope as heck. Thank you!
:O
As primarily a Windows admin (Yes, we exist on Lemmy ;) ) here are few I use often.
Enter-PSSesion
Get-ADUser
(also group and computer)CLS
(aka the superiorclear
)ii .
(short forInvoke-Item .
which runs the selected object using the default method. For paths (like.
) the default is explorer, soii .
opens the current directory using explorer.)ft
(short forFormat-Table
formats piped input as a table.)fl
(short forformat-like
. Used likeft
but for lists.)Where-Object
Select-Object
Fucking hell Lol ๐
There are dozens of us.
Also, I'll add:
- Get-Help
- Get-Command
- Get-Member
exit
Control + D
I've recently started using tmux
when starting a new SSH session to try to build the habit.
For Debian based/descended distros:
sudo apt-get update && sudo apt-get upgrade
And technically I also regularly use
redshift -O 3000
all of the blue light filter programs try to align themselves with a user's geographic location and time, but I don't keep normal hours
topgrade
does this and and a lot more
Chuck the -y in there for extra lazy mode
I would but much like somebody else's recent post I have in the past nuked my install by blindly agreeing to some recommended software removals before. These days I like to double check what packages are being updated and replaced.
I often play an old DOS game in DOSBox, and when I exit it doesn't reset the screen resolution. So I reset it manually by typing
xrandr -output e-DP1 -auto
g-push
which is alias for
git push origin `git branch --show`
Which I'm writing on my phone without testing or looking
git config --global alias.pusho 'push --set-upstream origin HEAD'
You're welcome.
git push origin HEAD
is a slightly shorter way of doing the same thing, even though you have an alias anyway lol
In my ~/.bashprofile:
alias resource="source ~/.bashprofile"
In my terminal:
resource
Anything to save a few characters
exec $SHELL -l
I have cd && clear
aliased as home
Lazy aliases unite!
Asklemmy
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~