Bash turns 38 today! Celebrate Bash's 38th birthday with 38 built-in features and essential tips. Learn keyboard shortcuts, parameter expansion, conditionals & more.
Full guide here: ostechnix.com/38-bash-tips...
#Bash #Shell #Bash38 #Linux #Bashtips #Shelltips #Shellscripting
Master Linux One Command at a Time Manage Jobs: jobs – View background and suspended tasks in your current shell session.
Easily track what’s running, stopped, or waiting.
#LinuxCommands #jobs #ShellTips #SysAdmin #CommandLine #OpenSource #TechGuide #MasterLinux
# Use brace expansion to backup my file ls #> my_conf.ini cp my_conf.ini{,.bak} ls #> my_conf.ini my_conf.ini.bak
💡 Toujours utile, l'expansion des accolades, pour éviter de se répéter. #shelltips
Master #Linux One #Command at a Time
Navigate with ease:
cd – Change directories effortlessly and move around your file system like a pro.
#LinuxBasics #cdCommand #LinuxCommands #CommandLine #CLI #SysAdmin #DevOps #LearnLinux #OpenSource #LinuxTips #TerminalSkills #ShellTips
Master #Linux One #Command at a Time
Start with the basics: ls – Effortlessly list files and directories in your current path.
Simple, powerful, and essential for every Linux user.
#LinuxBasics #TerminalTips #SysAdmin #DevOps #LinuxTips #LearnLinux #TechEducation #ShellTips #CLI
Evita sobrescribir archivos con cp
Cuando usas cp para copiar archivos, a veces podrías sobrescribir uno por error. Usa esta opción para protegerte
cp -i archivo_origen archivo_destino
La opción -i (interactivo) te preguntará antes de sobrescribir cualquier archivo.
#Linux #ShellTips #Bash
Repetir un comando automáticamente hasta que tenga éxito
until comando; do sleep 5; done
Ejecuta comando cada 5 segundos hasta que su salida tenga éxito (código de salida 0).
#Linux #ShellTips #Bash #Sysadmin
Master #Linux One Command at a Time - View File Ends Easily: tail - Display Last Lines of a File
#LinuxTips #CommandLine #TailCommand #SysAdmin #LinuxCommands #TerminalTips #LearnLinux #OpenSource ##ServerLogs #BashCommands #LogFiles #ShellTips #DevOps #ITSupport #FileViewing
alias untar="tar xvf" alias untargz="tar xzvf" alias untgz="tar xzvf" alias untarbz2="tar xvjf"
💡 Parce qu'il est parfois compliqué de se souvenir des arguments à utiliser avec tar, quelques alias peuvent s'avérer utiles #shelltips
How to Use XXD Command in Linux: A Step-by-Step Guide
#Linux #CLITips #ShellTips #CommandLine #SysAdmin
linuxtldr.com/xxd-command/
How to Use Envsubst to Replace Environment Variables in Linux
#Linux #ShellTips #Script #CLITips #SysAdmin #DevOps
linuxtldr.com/envsubst-com...
ShellBench: Perform Benchmark Tests on Various Linux Shells
#Linux #ShellTips #Shell #LinuxShell #Bash #Zsh
linuxtldr.com/shellbench-t...
Inotifywait: Monitor Live Events on Files and Directories on Linux
#Linux #CommandLine #ShellTips #ShellScript #SysAdmin #Scripting
linuxtldr.com/install-inot...
Warp: A Modern Terminal With AI Features on Linux (Install + Use)
#Linux #TerminalTips #LinuxTips #AI #Programming #ShellTips
linuxtldr.com/installing-w...
BSKY_HANDLE='zakarisz.bsky.social' # Put your own handle BSKY_DID=$( curl -s -G --data-urlencode "handle=$BSKY_HANDLE" https://bsky.social/xrpc/com.atproto.identity.resolveHandle \ | jq -r .did ) curl -s https://plc.directory/${BSKY_DID} | jq -r '.service[].serviceEndpoint' #> https://bsky.social
💡 Savez-vous comment vérifier si vous avez rejoint la mycosphère, sans passer par @jazbot.jazco.dev ? #shelltips
(Pas encore de champignons par ici...)
# Use `git checkout -` to return to the previous branch git branch --show-current #> feat-123-my-feature git checkout fix-666-evil-bug git branch --show-current #> fix-666-evil-bug git checkout - git branch --show-current #> feat-123-my-feature
[on refait le post car une coquille s'était glissée]
💡 Mais saviez-vous que sur le même principe, il existe la commande `git checkout -` pour revenir à la branche précédente ? #shelltips
# Use `cd -` to return to the previous directory pwd #> /tmp/foo/bar/baz cd /tmp/foo pwd #> /tmp/foo cd - #> /tmp/foo/bar/baz pwd #> /tmp/foo/bar/baz
💡 Beaucoup plus connue que l'astuce précédente - il me semble - mais qui reste intéressant à connaître et que j'utilise quotidiennement, la commande `cd -` pour revenir dans le dernier dossier où on était #shelltips
# Use $_ to get value of the last argument # of your previous command mkdir -p /tmp/foo/bar/baz cd $_ pwd #> /tmp/foo/bar/baz
💡 Connaissez-vous le trop méconnu $_ qui permet de récupérer le dernier argument de la commande précédents ? #shelltips
# How to generate a password hash for a .htpasswd using openssl ? echo "my_username:$( openssl passwd -apr1 my_password )" > .htpasswd
💡 Le saviez-vous ? Au lieu de la commande htpasswd, vous pouvez aussi utiliser OpenSSL pour générer un .htpasswd. #shelltips