diff --git a/pages/common/iconv.md b/pages/common/iconv.md new file mode 100644 index 000000000..57aa5e694 --- /dev/null +++ b/pages/common/iconv.md @@ -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` diff --git a/pages/common/ssh.md b/pages/common/ssh.md index d029503cd..2d44d218c 100644 --- a/pages/common/ssh.md +++ b/pages/common/ssh.md @@ -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}}` diff --git a/pages/common/tar.md b/pages/common/tar.md index 927d97d3f..c43cc0115 100644 --- a/pages/common/tar.md +++ b/pages/common/tar.md @@ -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}}`