mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 02:15:25 +02:00
This commit is contained in:
commit
d0dee849c2
3 changed files with 23 additions and 0 deletions
15
pages/common/iconv.md
Normal file
15
pages/common/iconv.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# iconv
|
||||
|
||||
> Converts text from one encoding to another
|
||||
|
||||
- convert file and print to stdout
|
||||
|
||||
`iconv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}`
|
||||
|
||||
- convert file to current locale
|
||||
|
||||
`iconv -f {{from_encoding}} {{input_file}} > {{output_file}}`
|
||||
|
||||
- list supported encodings
|
||||
|
||||
`iconv -l`
|
|
@ -26,3 +26,7 @@
|
|||
- ssh tunneling: forward a specific port (localhost:9999 to slashdot.org:80)
|
||||
|
||||
`ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}`
|
||||
|
||||
- ssh enable agent forward
|
||||
|
||||
`ssh -A {{username}}@{{remote_host}}`
|
||||
|
|
|
@ -22,3 +22,7 @@
|
|||
- extract a bzipped archive in the current directory
|
||||
|
||||
`tar xjf {{source.tar.bz2}}`
|
||||
|
||||
- create a compressed archive, using archive suffix to determine the compression programm
|
||||
|
||||
`tar caf {{target.tar.xz}} {{file1 file2 file3}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue