Mastering the command line in #Linux opens doors to endless possibilities & happiness. Try an @opensuse distribution & learn the power of 🐧 control. Use your powers responsibly & have a lot of fun! get.opensuse.org
@opensuse Yes, agreed about the power of the *nix command line as a UI.
It used to seem like magic when a client would hold a meeting to plan a week or two to make a complex change in thousands of data, documentation, and/or code files, then before the end of the meeting I'd tell them it was already done and ready to commit. 🙂
🆕 blog! “Use WP CLI to find all blog posts without a featured image - two methods”
This uses the wp shell command. It gives you an interactive prompt into which you can do various WordPress "things". One small annoyance is that it doesn't like multi-line entry. It treats every hit of the enter key as "plz run the codez" - s…
I found it in the #FSF newsletter, but it wasn'very clear about the source. It seems it was published in 2009 but some parts were lost or had to be "reverse-engineered" to be published again in plain-text? At any rate, it seems like an excellent way to start, even if the screenshots are a bit dated (hooray for conservative text interface!)
A thought just struck me, fuck command line options, why not just use environment variables? What makes git commit --message "fixed shit" better than message="fixed shit" git commit?
edit: apparently environment variables don't work the way I thought they did. I thought you could prefix a command (without a newline or semicolon between) with vars and they would be set only for the command
It's 2023 and I still can't wrap my head around the fact that I can't freely move my cursor around the terminal, either by keyboard or by mouse, like I can a text editor. I know Ctrl+A to jump to the start of a line, but it's Opt + Arrow keys for anything else.
It's muscle memory at this point, sure, but please, someone, anybody: there's gotta be a better way.
Je relis mon .bashrc et ceci me rend bien des services car j'oublie souvent tous les paramètres pour extraire des archives en ligne de commande. Là, je tape extract nom-de-l-archive et c'est réglé :)
extract () { if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2…