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
223c3e6421 shell: added enter error 2023-09-11 23:13:46 +02:00
b55703460d shell: added ln 2023-09-11 23:07:41 +02:00
2 changed files with 26 additions and 1 deletions

View File

@ -72,7 +72,8 @@ used the
[user space configuration](../syncthing.md#user-space-configuration-for-linux) [user space configuration](../syncthing.md#user-space-configuration-for-linux)
is recommended. is recommended.
Afterwards move the game saves to the directory set up by Syncthing and create Afterwards move the game saves to the directory set up by Syncthing and create
symbolic links to link them back to the original place. [symbolic links](/wiki/linux/shell.md#symbolic-links-using-ln) to link them back to the original
place.
## Error Handling ## Error Handling

View File

@ -24,6 +24,17 @@ The following is a list of Unix shells that are POSIX compliant.
This section addresses various different functions by and actions that can be This section addresses various different functions by and actions that can be
taken with shell commands. taken with shell commands.
### Symbolic Links using `ln`
`ln` is a command to create links between files and folders.
The most simple way to create a link between two folders or files is running the following
command.
Replace `<source folder/file>` and `<target folder/file>` as needed.
```sh
ln -s <source folder/file> <target folder/file>
```
### `ls` and its Alternatives ### `ls` and its Alternatives
`ls` is a command to list files and directories. `ls` is a command to list files and directories.
@ -178,3 +189,16 @@ Error outputs (stderr) can be silenced by appending `2> /dev/null`.
The complete output of both stderr and stdout can be silenced by appending The complete output of both stderr and stdout can be silenced by appending
`> /dev/null 2>&1` to the command. `> /dev/null 2>&1` to the command.
A shortened version of it not possible on all shells is `&> /dev/null`. A shortened version of it not possible on all shells is `&> /dev/null`.
## Error solving
This section addresses various problems that can occur and are related to the shell.
### Pressing Enter Produces `^M`
This error can easily be fixed by running the following command.
It is related to a terminal line setting problem.
```sh
stty sane
```