Trending

#ShellTips

Latest posts tagged with #ShellTips on Bluesky

Latest Top
Trending

Posts tagged #ShellTips

Preview
38 Bash Tips: Essential Shell Features and Shortcuts (38th Birthday Edition) - OSTechNix Bash turns 38! Learn 38 built-in shell features and tips: keyboard shortcuts, history tricks, parameter expansion, conditionals & arrays.

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

1 0 0 0
Post image

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

1 1 0 0
# Use brace expansion to backup my file

ls
#> my_conf.ini

cp my_conf.ini{,.bak}

ls
#> my_conf.ini  my_conf.ini.bak

# 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

0 0 0 0
Post image

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

2 0 0 0
Post image

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

0 0 0 0
Post image

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

0 0 0 0
Post image

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

0 0 0 0
Post image

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

1 0 0 0
alias untar="tar xvf"
alias untargz="tar xzvf"
alias untgz="tar xzvf"
alias untarbz2="tar xvjf"

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

4 1 1 0
Preview
How to Use XXD Command in Linux: A Step-by-Step Guide Learn how to use the XXD command to manage, convert, and display binary data from standard input or file on Unix and Linux.

How to Use XXD Command in Linux: A Step-by-Step Guide
#Linux #CLITips #ShellTips #CommandLine #SysAdmin
linuxtldr.com/xxd-command/

2 0 0 0
Preview
How to Use Envsubst to Replace Environment Variables in Linux Learn how to substitute single or multiple environment variables from a file using the envsubst command-line tool in Linux.

How to Use Envsubst to Replace Environment Variables in Linux
#Linux #ShellTips #Script #CLITips #SysAdmin #DevOps
linuxtldr.com/envsubst-com...

1 0 0 0
Preview
ShellBench: Perform Benchmark Tests on Various Linux Shells This article will show you how to setup ShellBench and use it to perform benchmark tests on various shells to compare their performance.

ShellBench: Perform Benchmark Tests on Various Linux Shells
#Linux #ShellTips #Shell #LinuxShell #Bash #Zsh
linuxtldr.com/shellbench-t...

1 0 0 0
Preview
Inotifywait: Monitor Live Events on Files and Directories on Linux In this article, you will learn how to watch read, write, open, close, etc. events on a file or directory and get desktop notifications.

Inotifywait: Monitor Live Events on Files and Directories on Linux
#Linux #CommandLine #ShellTips #ShellScript #SysAdmin #Scripting
linuxtldr.com/install-inot...

2 1 0 0
Preview
Warp: A Modern Terminal With AI Features on Linux (Install + Use) Warp is a modern terminal with AI integration and a few additional features that directly set it apart from traditional terminals.

Warp: A Modern Terminal With AI Features on Linux (Install + Use)
#Linux #TerminalTips #LinuxTips #AI #Programming #ShellTips
linuxtldr.com/installing-w...

1 0 0 0
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

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...)

1 0 1 0
# 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

# 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

1 0 0 1
# 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

# 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

2 0 1 0
# Use $_ to get value of the last argument
#  of your previous command

mkdir -p /tmp/foo/bar/baz
cd $_
pwd
#> /tmp/foo/bar/baz

# 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

9 4 1 0
# How to generate a password hash for a .htpasswd using openssl ?

echo "my_username:$( openssl passwd -apr1 my_password )" > .htpasswd

# 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

1 0 0 0