mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
pages*: fix Bash, Zsh and fish names (#12481)
This commit is contained in:
parent
38de1af697
commit
ffa4be3e7a
47 changed files with 63 additions and 63 deletions
|
@ -28,6 +28,6 @@
|
|||
|
||||
`bash -s`
|
||||
|
||||
- Gib die Version von bash aus (verwende `echo $BASH_VERSION`, um nur die Versionszeichenkette anzuzeigen):
|
||||
- Gib die Version von Bash aus (verwende `echo $BASH_VERSION`, um nur die Versionszeichenkette anzuzeigen):
|
||||
|
||||
`bash --version`
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
`fish --no-execute {{pfad/zu/skript.fish}}`
|
||||
|
||||
- Starte eine private, interaktive Shell-Sitzung, in der `fish` weder auf die Shell-History zugreift, noch diese verändert:
|
||||
- Starte eine private, interaktive Shell-Sitzung, in der fish weder auf die Shell-History zugreift, noch diese verändert:
|
||||
|
||||
`fish --private`
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
`omz changelog`
|
||||
|
||||
- Starte die aktuelle zsh-Sitzung und Oh My Zsh neu:
|
||||
- Starte die aktuelle Zsh-Sitzung und Oh My Zsh neu:
|
||||
|
||||
`omz reload`
|
||||
|
||||
|
|
|
@ -24,6 +24,6 @@
|
|||
|
||||
`zsh --verbose`
|
||||
|
||||
- Führe einen Befehl innerhalb von `zsh` mit ausgeschalteten Glob-Mustern aus:
|
||||
- Führe einen Befehl innerhalb von Zsh mit ausgeschalteten Glob-Mustern aus:
|
||||
|
||||
`noglob {{befehl}}`
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Erweiterter `chroot`-Befehl zur Unterstützung des Arch-Linux-Installationsprozesses.
|
||||
> Weitere Informationen: <https://man.archlinux.org/man/arch-chroot.8>.
|
||||
|
||||
- Starte eine interaktive Shell (Standardmäßig `bash`) in einem neuen Root-Verzeichnis:
|
||||
- Starte eine interaktive Shell (Standardmäßig Bash) in einem neuen Root-Verzeichnis:
|
||||
|
||||
`arch-chroot {{pfad/zu/neuem/root}}`
|
||||
|
||||
|
@ -11,10 +11,10 @@
|
|||
|
||||
`arch-chroot -u {{anderer_benutzer}} {{pfad/zu/neuem/root}}`
|
||||
|
||||
- Führe einen benutzerdefinierten Befehl (anstelle des Standardbefehls `bash`) im neuen Root-Verzeichnis aus:
|
||||
- Führe einen benutzerdefinierten Befehl (anstelle des Standardbefehls Bash) im neuen Root-Verzeichnis aus:
|
||||
|
||||
`arch-chroot {{pfad/zu/neuem/root}} {{befehl}} {{befehlsparameter}}`
|
||||
|
||||
- Gib die Shell an, die nicht die Standard-Shell `bash` ist (in diesem Fall sollte das Paket `zsh` auf dem Zielsystem installiert worden sein):
|
||||
- Gib die Shell an, die nicht die Standard-Shell Bash ist (in diesem Fall sollte das Paket `zsh` auf dem Zielsystem installiert worden sein):
|
||||
|
||||
`arch-chroot {{pfad/zu/neuem/root}} {{zsh}}`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# history expansion
|
||||
|
||||
> Reutiliza y expande el historial del shell en `sh`, `bash`, `zsh`, `rbash` y `ksh`.
|
||||
> Reutiliza y expande el historial del shell en `sh`, Bash, Zsh, `rbash` y `ksh`.
|
||||
> Más información: <https://www.gnu.org/software/bash/manual/html_node/History-Interaction>.
|
||||
|
||||
- Ejecuta el comando anterior como root (`!!` se sustituye por el comando anterior):
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Efface l'écran du terminal.
|
||||
> Plus d'informations : <https://manned.org/clear>.
|
||||
|
||||
- Effacer l'écran (identique à la séquence Contrôle-L sur une interface bash) :
|
||||
- Effacer l'écran (identique à la séquence Contrôle-L sur une interface Bash) :
|
||||
|
||||
`clear`
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
`sudo --user={{utilisateur}} --group={{groupe}} {{id -a}}`
|
||||
|
||||
- Répéte la dernière commande préfixée de `sudo` (uniquement dans `bash`, `zsh`, etc.) :
|
||||
- Répéte la dernière commande préfixée de `sudo` (uniquement dans Bash, Zsh, etc.) :
|
||||
|
||||
`sudo !!`
|
||||
|
||||
|
|
|
@ -24,6 +24,6 @@
|
|||
|
||||
`zsh --verbose`
|
||||
|
||||
- Exécute une commande spécifique dans `zsh` sans motifs génériques d'expansion des noms de fichier :
|
||||
- Exécute une commande spécifique dans Zsh sans motifs génériques d'expansion des noms de fichier :
|
||||
|
||||
`noglob "{{command}}"`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# abbr
|
||||
|
||||
> Gère les abréviations pour le shell Fish.
|
||||
> Gère les abréviations pour le shell fish.
|
||||
> Les mots définis par l'utilisateur sont remplacés par des phrases plus longues après leur saisie.
|
||||
> Plus d'informations : <https://fishshell.com/docs/current/cmds/abbr.html>.
|
||||
|
||||
|
|
|
@ -7,15 +7,15 @@
|
|||
|
||||
`history`
|
||||
|
||||
- Tampilkan 20 perintah-perintah terakhir (di `zsh` perintah ini menampilkan semua perintah-perintah sejak dari baris ke-20):
|
||||
- Tampilkan 20 perintah-perintah terakhir (di Zsh perintah ini menampilkan semua perintah-perintah sejak dari baris ke-20):
|
||||
|
||||
`history {{20}}`
|
||||
|
||||
- Hapus sejarah perintah-perintah (hanya untuk sesi shell `bash` saat ini):
|
||||
- Hapus sejarah perintah-perintah (hanya untuk sesi shell Bash saat ini):
|
||||
|
||||
`history -c`
|
||||
|
||||
- Tulis ulang file sejarah dengan sejarah sesi shell `bash` saat ini (seringkali dikombinasikan dengan `history -c` untuk menghapus sejarah):
|
||||
- Tulis ulang file sejarah dengan sejarah sesi shell Bash saat ini (seringkali dikombinasikan dengan `history -c` untuk menghapus sejarah):
|
||||
|
||||
`history -w`
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# open
|
||||
|
||||
> Buka file, direktori, dan alamat URI dengan aplikasi-aplikasi default yang dapat membukanya.
|
||||
> Perintah ini tersedia melalui `fish` dalam sistem operasi yang tidak menawarkan perintah `open` secara bawaan (seperti Haiku dan macOS).
|
||||
> Perintah ini tersedia melalui fish dalam sistem operasi yang tidak menawarkan perintah `open` secara bawaan (seperti Haiku dan macOS).
|
||||
> Informasi lebih lanjut: <https://fishshell.com/docs/current/cmds/open.html>.
|
||||
|
||||
- Buka sebuah file di dalam aplikasi default:
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
|
||||
`tldr open -p osx`
|
||||
|
||||
- Lihat dokumentasi perintah `open` yang disediakan dalam `fish`:
|
||||
- Lihat dokumentasi perintah `open` yang disediakan dalam fish:
|
||||
|
||||
`tldr open.fish`
|
||||
|
|
|
@ -24,6 +24,6 @@
|
|||
|
||||
`bash -s`
|
||||
|
||||
- Stampa informazioni sulla versione di bash (usa `echo $BASH_VERSION` per mostrare solo la versione):
|
||||
- Stampa informazioni sulla versione di Bash (usa `echo $BASH_VERSION` per mostrare solo la versione):
|
||||
|
||||
`bash --version`
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
> Pulisce lo schermo del terminale.
|
||||
> Maggiori informazioni: <https://manned.org/clear>.
|
||||
|
||||
- Pulisci lo schermo (equivalente a Control+L se si utilizza la shell bash):
|
||||
- Pulisci lo schermo (equivalente a Control+L se si utilizza la shell Bash):
|
||||
|
||||
`clear`
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
`docker exec --interactive --detach {{nome_container}} {{comando}}`
|
||||
|
||||
- Imposta una variabile d'ambiente in una sessione bash in esecuzione:
|
||||
- Imposta una variabile d'ambiente in una sessione Bash in esecuzione:
|
||||
|
||||
`docker exec --interactive --tty --env {{nome_variabile}}={{valore}} {{nome_container}} {{/bin/bash}}`
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
`sudo -u {{utente}} -g {{gruppo}} {{id -a}}`
|
||||
|
||||
- Ripeti l'ultimo comando prefissandolo con "sudo" (funziona solo in bash, zsh, ecc):
|
||||
- Ripeti l'ultimo comando prefissandolo con "sudo" (funziona solo in Bash, Zsh, ecc):
|
||||
|
||||
`sudo !!`
|
||||
|
||||
|
|
|
@ -7,15 +7,15 @@
|
|||
|
||||
`history`
|
||||
|
||||
- 直近の20個のコマンドを表示する (`zsh` では20個目から始まるすべてのコマンドを表示する):
|
||||
- 直近の20個のコマンドを表示する (Zsh では20個目から始まるすべてのコマンドを表示する):
|
||||
|
||||
`history {{20}}`
|
||||
|
||||
- コマンド履歴のリストを消去する (現在の `bash` シェルに対してのみ):
|
||||
- コマンド履歴のリストを消去する (現在の Bash シェルに対してのみ):
|
||||
|
||||
`history -c`
|
||||
|
||||
- コマンド履歴ファイルを現在の `bash` シェルのコマンド履歴で上書きする (履歴を削除するために `history -c` と組み合わせることがよくあります):
|
||||
- コマンド履歴ファイルを現在の Bash シェルのコマンド履歴で上書きする (履歴を削除するために `history -c` と組み合わせることがよくあります):
|
||||
|
||||
`history -w`
|
||||
|
||||
|
|
|
@ -28,6 +28,6 @@
|
|||
|
||||
`bash -e {{경로/대상/script.sh}}`
|
||||
|
||||
- `stdin`에서 bash 실행하기:
|
||||
- `stdin`에서 Bash 실행하기:
|
||||
|
||||
`{{echo "echo 'bash가 실행되었습니다'"}} | bash`
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
> 터미널 화면을 지웁니다(clear).
|
||||
> 더 많은 정보: <https://manned.org/clear>.
|
||||
|
||||
- 터미널 화면을 지웁니다 (bash 쉘에서 Control-L을 누르는 것과 같은 기능입니다):
|
||||
- 터미널 화면을 지웁니다 (Bash 쉘에서 Control-L을 누르는 것과 같은 기능입니다):
|
||||
|
||||
`clear`
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# open
|
||||
|
||||
> Opent bestanden, mappen en URI's met standaardtoepassingen.
|
||||
> Deze commando is beschikbaar via `fish` op besturingssystemen zonder het ingebouwde `open`-commando (bijv. Haiku en macOS).
|
||||
> Deze commando is beschikbaar via fish op besturingssystemen zonder het ingebouwde `open`-commando (bijv. Haiku en macOS).
|
||||
> Meer informatie: <https://fishshell.com/docs/current/cmds/open.html>.
|
||||
|
||||
- Open een bestand met de bijbehorende applicatie:
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
|
||||
`tldr open -p osx`
|
||||
|
||||
- Bekijk de documentatie voor het command beschikbaar via `fish`:
|
||||
- Bekijk de documentatie voor het command beschikbaar via fish:
|
||||
|
||||
`tldr open.fish`
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Gemengde systeem commando's voor PlatformIO.
|
||||
> Meer informatie: <https://docs.platformio.org/en/latest/core/userguide/system/>.
|
||||
|
||||
- Installeer shell completion voor de huidige shell (ondersteund Bash, Fish, Zsh en PowerShell):
|
||||
- Installeer shell completion voor de huidige shell (ondersteund Bash, fish, Zsh en PowerShell):
|
||||
|
||||
`pio system completion install`
|
||||
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
|
||||
`tldr open -p osx`
|
||||
|
||||
- Zobacz dokumentację komendy dostępnej w `fish`:
|
||||
- Zobacz dokumentację komendy dostępnej w fish:
|
||||
|
||||
`tldr open.fish`
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
`sudo -u {{uzytkownik}} -g {{grupa}} {{id -a}}`
|
||||
|
||||
- Powtórz ostatnie polecenie poprzedzone `sudo` (tylko w `bash`, `zsh`, etc.):
|
||||
- Powtórz ostatnie polecenie poprzedzone `sudo` (tylko w Bash, Zsh, etc.):
|
||||
|
||||
`sudo !!`
|
||||
|
||||
|
|
|
@ -7,15 +7,15 @@
|
|||
|
||||
`history`
|
||||
|
||||
- Exibe os últimos 20 comandos (em `zsh` ele exibe todos os comandos a partir do 20º):
|
||||
- Exibe os últimos 20 comandos (em Zsh ele exibe todos os comandos a partir do 20º):
|
||||
|
||||
`history {{20}}`
|
||||
|
||||
- Limpa a lista do histórico de comandos (apenas para o shell `bash` atual):
|
||||
- Limpa a lista do histórico de comandos (apenas para o shell Bash atual):
|
||||
|
||||
`history -c`
|
||||
|
||||
- Sobrescreve o arquivo de histórico com o histórico do shell `bash` atual (frequentemente combinado com `history -c` para limpar o histórico):
|
||||
- Sobrescreve o arquivo de histórico com o histórico do shell Bash atual (frequentemente combinado com `history -c` para limpar o histórico):
|
||||
|
||||
`history -w`
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
`sudo --user={{usuário}} --group={{grupo}} {{id -a}}`
|
||||
|
||||
- Executa um comando anterior com o prefixo `sudo` (apenas em `bash`, `zsh`, etc.):
|
||||
- Executa um comando anterior com o prefixo `sudo` (apenas em Bash, Zsh, etc.):
|
||||
|
||||
`sudo !!`
|
||||
|
||||
|
|
|
@ -32,6 +32,6 @@
|
|||
|
||||
`zsh --verbose`
|
||||
|
||||
- Executa um comando específico dentro do `zsh` com padrões glob desativados:
|
||||
- Executa um comando específico dentro do Zsh com padrões glob desativados:
|
||||
|
||||
`noglob {{comando}}`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# history expansion
|
||||
|
||||
> Повторное использование и подстановка команд из списка истории в `sh`, `bash`, `zsh`, `rbash` and `ksh`.
|
||||
> Повторное использование и подстановка команд из списка истории в `sh`, Bash, Zsh, `rbash` and `ksh`.
|
||||
> Больше информации: <https://www.gnu.org/software/bash/manual/html_node/History-Interaction>.
|
||||
|
||||
- Запустить предыдущую команду от имени суперпользователя (`!!` заменяется на предыдущую команду):
|
||||
|
|
|
@ -7,15 +7,15 @@
|
|||
|
||||
`history`
|
||||
|
||||
- Отобразить последние 20 команд (в `zsh` отображает все команды, начиная с 20-й):
|
||||
- Отобразить последние 20 команд (в Zsh отображает все команды, начиная с 20-й):
|
||||
|
||||
`history {{20}}`
|
||||
|
||||
- Очистить список истории команд (только для текущей оболочки `bash`):
|
||||
- Очистить список истории команд (только для текущей оболочки Bash):
|
||||
|
||||
`history -c`
|
||||
|
||||
- Перезаписать файл истории историей текущей оболочки `bash` (часто комбинируется с `history -c` для очистки истории):
|
||||
- Перезаписать файл истории историей текущей оболочки Bash (часто комбинируется с `history -c` для очистки истории):
|
||||
|
||||
`history -w`
|
||||
|
||||
|
|
|
@ -24,6 +24,6 @@
|
|||
|
||||
`zsh --verbose`
|
||||
|
||||
- Выполнить определённую команду внутри `zsh` с отключёнными glob-шаблонами:
|
||||
- Выполнить определённую команду внутри Zsh с отключёнными glob-шаблонами:
|
||||
|
||||
`noglob {{команда}}`
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
`docker exec --interactive --detach {{konteyner_ismi}} {{komut}}`
|
||||
|
||||
- Çalışmakta olan bir bash oturumu içinde bir çevre değişkeni belirle:
|
||||
- Çalışmakta olan bir Bash oturumu içinde bir çevre değişkeni belirle:
|
||||
|
||||
`docker exec --interactive --tty --env {{değişken_ismi}}={{value}} {{konteyner_ismi}} {{/bin/bash}}`
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> 辅助 Arch Linux 安装流程的更强 `chroot` 命令。
|
||||
> 更多信息:<https://man.archlinux.org/man/arch-chroot.8>.
|
||||
|
||||
- 在新的根目录下开启一个交互外壳程序(默认是 `bash`):
|
||||
- 在新的根目录下开启一个交互外壳程序(默认是 Bash):
|
||||
|
||||
`arch-chroot {{新根目录}}`
|
||||
|
||||
|
@ -11,10 +11,10 @@
|
|||
|
||||
`arch-chroot -u {{用户名}} {{新根目录}}`
|
||||
|
||||
- 在新的根目录下运行一个自定义命令(取代默认的 `bash`):
|
||||
- 在新的根目录下运行一个自定义命令(取代默认的 Bash):
|
||||
|
||||
`arch-chroot {{新根目录}} {{命令}} {{命令参数}}`
|
||||
|
||||
- 指定除默认的 `bash` 以外的外壳程序(以下例子需要现在目标系统中先安装 `zsh`):
|
||||
- 指定除默认的 Bash 以外的外壳程序(以下例子需要现在目标系统中先安装 `zsh`):
|
||||
|
||||
`arch-chroot {{新根目录}} {{zsh}}`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# history expansion
|
||||
|
||||
> Reuse and expand the shell history in `sh`, `bash`, `zsh`, `rbash` and `ksh`.
|
||||
> Reuse and expand the shell history in `sh`, Bash, Zsh, `rbash` and `ksh`.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/html_node/History-Interaction>.
|
||||
|
||||
- Run the previous command as root (`!!` is replaced by the previous command):
|
||||
|
|
|
@ -7,15 +7,15 @@
|
|||
|
||||
`history`
|
||||
|
||||
- Display the last 20 commands (in `zsh` it displays all commands starting from the 20th):
|
||||
- Display the last 20 commands (in Zsh it displays all commands starting from the 20th):
|
||||
|
||||
`history {{20}}`
|
||||
|
||||
- Clear the commands history list (only for current `bash` shell):
|
||||
- Clear the commands history list (only for current Bash shell):
|
||||
|
||||
`history -c`
|
||||
|
||||
- Overwrite history file with history of current `bash` shell (often combined with `history -c` to purge history):
|
||||
- Overwrite history file with history of current Bash shell (often combined with `history -c` to purge history):
|
||||
|
||||
`history -w`
|
||||
|
||||
|
|
|
@ -23,6 +23,6 @@
|
|||
|
||||
`msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST={{local_ip}} LPORT={{local_port}} -f exe -o {{path/to/binary.exe}}`
|
||||
|
||||
- Create a raw bash with a reverse TCP handler:
|
||||
- Create a raw Bash with a reverse TCP handler:
|
||||
|
||||
`msfvenom -p cmd/unix/reverse_bash LHOST={{local_ip}} LPORT={{local_port}} -f raw`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# nvm
|
||||
|
||||
> Install, uninstall, or switch between Node.js versions under the `fish` shell.
|
||||
> Install, uninstall, or switch between Node.js versions under the fish shell.
|
||||
> Supports version numbers like "12.8" or "v16.13.1", and labels like "stable", "system", etc.
|
||||
> More information: <https://github.com/jorgebucaran/nvm.fish>.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# open
|
||||
|
||||
> Opens files, directories, and URIs with default applications.
|
||||
> This command is available through `fish` on operating systems without the built-in `open` command (e.g. Haiku and macOS).
|
||||
> This command is available through fish on operating systems without the built-in `open` command (e.g. Haiku and macOS).
|
||||
> More information: <https://fishshell.com/docs/current/cmds/open.html>.
|
||||
|
||||
- Open a file with the associated application:
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
|
||||
`tldr open -p osx`
|
||||
|
||||
- View documentation for the command available through `fish`:
|
||||
- View documentation for the command available through fish:
|
||||
|
||||
`tldr open.fish`
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Miscellaneous system commands for PlatformIO.
|
||||
> More information: <https://docs.platformio.org/en/latest/core/userguide/system/>.
|
||||
|
||||
- Install shell completion for the current shell (supports Bash, Fish, Zsh and PowerShell):
|
||||
- Install shell completion for the current shell (supports Bash, fish, Zsh and PowerShell):
|
||||
|
||||
`pio system completion install`
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
`printf "{{var1: %s\tvar2: %s\n}}" "{{$VAR1}}" "{{$VAR2}}"`
|
||||
|
||||
- Store a formatted message in a variable (does not work on zsh):
|
||||
- Store a formatted message in a variable (does not work on Zsh):
|
||||
|
||||
`printf -v {{myvar}} {{"This is %s = %d\n" "a year" 2016}}`
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
`procs --tree`
|
||||
|
||||
- List information about processes, if the commands which started them contain `zsh`:
|
||||
- List information about processes, if the commands which started them contain Zsh:
|
||||
|
||||
`procs {{zsh}}`
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
`sudo pueue completions bash {{/usr/share/bash-completion/completions/pueue.bash}}`
|
||||
|
||||
- Generate completions for zsh:
|
||||
- Generate completions for Zsh:
|
||||
|
||||
`sudo pueue completions zsh {{/usr/share/zsh/site-functions}}`
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
`sudo --user={{user}} --group={{group}} {{id -a}}`
|
||||
|
||||
- Repeat the last command prefixed with `sudo` (only in `bash`, `zsh`, etc.):
|
||||
- Repeat the last command prefixed with `sudo` (only in Bash, Zsh, etc.):
|
||||
|
||||
`sudo !!`
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
> Enhanced `chroot` command to help in the Arch Linux installation process.
|
||||
> More information: <https://man.archlinux.org/man/arch-chroot.8>.
|
||||
|
||||
- Start an interactive shell (`bash`, by default) in a new root directory:
|
||||
- Start an interactive shell (Bash, by default) in a new root directory:
|
||||
|
||||
`arch-chroot {{path/to/new/root}}`
|
||||
|
||||
|
@ -11,10 +11,10 @@
|
|||
|
||||
`arch-chroot -u {{user}} {{path/to/new/root}}`
|
||||
|
||||
- Run a custom command (instead of the default `bash`) in the new root directory:
|
||||
- Run a custom command (instead of the default Bash) in the new root directory:
|
||||
|
||||
`arch-chroot {{path/to/new/root}} {{command}} {{command_arguments}}`
|
||||
|
||||
- Specify the shell, other than the default `bash` (in this case, the `zsh` package should have been installed in the target system):
|
||||
- Specify the shell, other than the default Bash (in this case, the `zsh` package should have been installed in the target system):
|
||||
|
||||
`arch-chroot {{path/to/new/root}} {{zsh}}`
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
`faketime '{{today 23:30}}' {{date}}`
|
||||
|
||||
- Open a new `bash` shell, which uses yesterday as the current date:
|
||||
- Open a new Bash shell, which uses yesterday as the current date:
|
||||
|
||||
`faketime '{{yesterday}}' {{bash}}`
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# whence
|
||||
|
||||
> A zsh builtin to indicate how a command would be interpreted.
|
||||
> A Zsh builtin to indicate how a command would be interpreted.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/whence.1.html>.
|
||||
|
||||
- Interpret `command`, with expansion if defined as an `alias` (similar to the `command -v` builtin):
|
||||
|
|
Loading…
Add table
Reference in a new issue