nebyoolae, (edited ) to random
@nebyoolae@masto.neb.host avatar

My top 5 most-used commands (filtered against recency bias):

  • git
  • cd
  • .. (aliased to cd ..)
  • rake
  • ls

My bottom 5 least-used commands (selectively chosen from 'used 5 times, used 4 times...used 1 time'):

  • ssh
  • rebash (aliased to source ~/.bashrc)
  • steep (aliased to brew update; brew upgrade)
  • vi
  • chmod

#cli #stats

arn_fai, to Bash French
@arn_fai@toot.aquilenet.fr avatar

Nous cherchons des personnes -voyantes ou qui s'intéressent à la ligne de commande , pour voir si elle seraient prêtes à essayer notre librairie pour son .

Il y a déjà 13 commandes à tester.

Au delà des problèmes de vue, cette librairie peut faciliter la vie d'un public plus large, puisqu'elle filtre les sorties de commandes pour les réduire à l'essentiel.

https://codeberg.org/ARN/shell-a11y

N'hésitez pas à nous contacter. 😉

maegul, to random
@maegul@hachyderm.io avatar

Talking to someone about git's UI, and they compared it to vim and GUI IDEs.

When replying with how vi was basically a GUI of its time over more CLI editing with ed/ex ...

it struck me that it is perhaps glaring that we don't have a "vgit": A more visual/TUI tool that supplanted and erased git from memory apart from the "git compatibility mode" still available in "vgit".

I may be off here, but is this emblematic of the cultish worship of unix tooling in the "linux" era?

#git #cli #unix

scy, (edited ) to linux
@scy@chaos.social avatar

TIL: You can ask GNU tar(1) to change the file names while extracting. (And you can limit tar to only extract specific files, but I knew that already.)

For example, I'm using this command to extract the static binary "resticprofile" from the release tarball, but give it a versioned file name (e.g. "resticprofile-0.26.0"):

VERSION=0.26.0
tar -xf resticprofile_$VERSION_linux_amd64.tar.gz --no-same-owner --transform "s,$,-$VERSION," resticprofile

#Linux #CLI #tar #shell

snail, to random
@snail@crmbl.uk avatar

Just installed the toot CLI Mastodon Clinet within my WSL.

Actually really like it, feels very old school and reminds me of using BBS's in the 90's.

snail,
@snail@crmbl.uk avatar

Strike that, just realised it's just a python module so now installed it under windows proper.

scy, to linux
@scy@chaos.social avatar

🫸 sudo su -
👉 sudo -i

#PSA #Linux #CLI

fink,
@fink@chaos.social avatar

@scy Sudo su "sh -c sudo foo"

sandboxgeneral, to archlinux
@sandboxgeneral@fosstodon.org avatar

paccache command from the pacman-contrib package is a wonderful command. I just cleared over 6GB of cache from / with the command.

https://wiki.archlinux.org/title/Pacman#Cleaning_the_package_cache

underlap,
@underlap@fosstodon.org avatar

@sandboxgeneral Thanks. I just reclaimed 22 GB.

sandboxgeneral,
@sandboxgeneral@fosstodon.org avatar

@underlap Wow, that's a huge amount of disk space reclamation!

fabian, (edited ) to python
@fabian@floss.social avatar

🐍 aprxc — A #Python #CLI tool to approximate the number of distinct values in a file/iterable using the Chakraborty/Vinodchandran/Meel’s (‘coin flip’) #algorithm¹.

:codeberg: https://codeberg.org/fa81/ApproxyCount

Vs. sort | uniq -c | wc -l: needs slightly more memory, but 5x faster.

Vs. awk '!a[$0]++' | wc -l: just as fast, using much less memory (20x-150x for large inputs).

At the cost of ~1% inaccuracy (configurable).

Useful? You decide! :)

¹ https://arxiv.org/pdf/2301.10191#section.2

#math #ComputerScience

salcode, to random
@salcode@phpc.social avatar

I've noticed running the following from the command line on my Mac does NOT include a newline character at the end of myfile.md

pbpaste > myfile.md

My notes and ideas around this at https://github.com/salcode/salcode-zsh/issues/58

#cli

scy, to random
@scy@chaos.social avatar

Did you know that you can have a #SQLite CLI config file? Pretty handy for changing the default memory limit, output format, or even print a nice banner.

Here's mine:
https://codeberg.org/scy/dotfiles/src/commit/dbe858184c07634d16065773e31bf6c1cb50b357/.sqliterc

It allows SQLite to use up to 1 GiB of page cache, uses nice Unicode box drawing characters, and tracks the runtime of queries by default. It also reminds me of how to turn these things off again.

(Pro tip: Set .timer on last, else it will print the stats for each of the start-up commands … 😬)

#CLI

scy,
@scy@chaos.social avatar

Also, if you have a look at https://sqlite.org/cli.html you'll see that you can customize the prompt using the .prompt "first line" "continuation" command.

And I've tried to create a fancy, colorful, nerd font prompt … and failed.

That's because both of the prompt strings are limited to 20 bytes by default (including a terminating null byte, I think). Also, even if you manage to cram ANSI codes into 20 bytes, the cursor positioning will have trouble with the non-printable characters. 😭

lukaso666, to debian Polish
@lukaso666@chaos.social avatar
yaqub,
@yaqub@mas.to avatar

@lukaso666 elegent

lukaso666,
@lukaso666@chaos.social avatar

@yaqub thanks

TheIdOfAlan, to Mac
@TheIdOfAlan@hachyderm.io avatar

Watch out if you use iTerm2 on a mac. The latest version (3.5.x) integrates OpenAI/ChatGPT. It looks like you have to set keys to use it, but I don't want it even in the mix so I'm sticking with the 3.4.x release.

#mac #programming #cli

dedsyn4ps3,
@dedsyn4ps3@fosstodon.org avatar

@TheIdOfAlan and that's why I've been using #kitty for the longest time now as my default terminal emulator... 😎

Still, it's good to spread awareness of this, as many end users may not even notice that change until it's installed and running as a new memory chugging daemon! 😅🫠

quincy, to random
@quincy@chaos.social avatar

nice,

lynx -dump -listonly

extracts all the link urls from a html page. #CLI

arn_fai, to accessibility French
@arn_fai@toot.aquilenet.fr avatar

Pour cette 13ème édition de la journée mondiale de sensibilisation à l'accessibilité , ARN, @hackstub et le groupe a11y-libre, propose à toutes les personnes qui pratiquent la ligne de commande, un hackaton « asynchrone » sur le thème « ligne de commande et cécité » !

Vous avez jusqu'au 31 mai, pour envoyer vos contributions. Il y a de nombreux lots à gagner.

https://arn-fai.net/fr/blog/shell-accessible

arn_fai,
@arn_fai@toot.aquilenet.fr avatar

Notre #hackaton pour rendre les shells accessibles est en cours jusqu'au 31 mai, nous publierons ici quelques contributions chaque jour.

Xogium propose des alias #bash qui désactivent les barres de progressions sur les commandes #docker et #pipenv (#python) car ces 2 commandes détournent des caractères brailles pour l'affichage de la barre...

Voilà qui améliore effectivement l'accessibilité de ces 2 commandes. Il y en a probablement d'autres dans le même genre.

#a11y

Anachron, to linux German
@Anachron@fosstodon.org avatar

Got any #linux blogs, especially with #cli tooling and Automation? Please let me know.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines