1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-19 22:17:45 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
535ef6e34f lutris: fixed links 2023-10-20 01:23:14 +02:00
3256afddb7 linux: added sibling cd navigation to shell 2023-10-20 00:25:37 +02:00
2 changed files with 15 additions and 2 deletions

View File

@ -119,8 +119,8 @@ changed under the `Runner options` tab.
There are many different versions of WINE, WINE-fshack and various
[Proton](/wiki/games/proton.md) and
[Proton GE versions](/wiki/games/proton.md#ge-version) to select.
Using the default runner of [Bottles called Caffe](/wiki/games/bottles.md#caffe)
is also possible.
Using the default runner of [Bottles](/wiki/games/bottles.md) - called
[Caffe](/wiki/games/bottles.md#caffe) - is also possible.
## Troubleshooting

View File

@ -23,6 +23,7 @@ The following is a list of Unix shells that are POSIX compliant.
This section addresses various different functions by and actions that can be
taken with shell commands.
The focus is mostly on POSIX-compliant shells and scripts that are compatible with POSIX.
### Symbolic Links using `ln`
@ -190,6 +191,18 @@ The complete output of both stderr and stdout can be silenced by appending
`> /dev/null 2>&1` to the command.
A shortened version of it not possible on all shells is `&> /dev/null`.
### `cd` Into Next Or Previous Sibling Directory
Quickly switching to the alphabetically next or previous directory can in some cases be useful.
For this the following commands can be used.
The first one navigates to the alphabetically previous sibling directory.
The second one to the next.
```sh
cd ../"$(ls -F .. | grep '/' | grep -B1 -xF "${PWD##*/}/" | head -n 1)"
cd ../"$(ls -F .. | grep '/' | grep -A1 -xF "${PWD##*/}/" | tail -n 1)"
```
## Error solving
This section addresses various problems that can occur and are related to the shell.