This commit is contained in:
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 tunneling: forward a specific port (localhost:9999 to slashdot.org:80)
|
||||||
|
|
||||||
`ssh -L {{9999}}:slashdot.org:80 {{username}}@{{remote_host}}`
|
`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
|
- extract a bzipped archive in the current directory
|
||||||
|
|
||||||
`tar xjf {{source.tar.bz2}}`
|
`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}}`
|
||||||
|
Reference in New Issue
Block a user