From 120ede30a5cf8fed1355a3f11fcc8dba12b2f083 Mon Sep 17 00:00:00 2001 From: runningwater Date: Tue, 15 Oct 2013 18:00:52 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E4=BA=86=E4=B8=89?= =?UTF-8?q?=E5=88=86=E4=B9=8B=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...nux Terminal--Seeing the unseen characters with cat!.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sources/Linux Terminal--Seeing the unseen characters with cat!.md b/sources/Linux Terminal--Seeing the unseen characters with cat!.md index 6df8b62dd5..4ac57b1edd 100644 --- a/sources/Linux Terminal--Seeing the unseen characters with cat!.md +++ b/sources/Linux Terminal--Seeing the unseen characters with cat!.md @@ -1,10 +1,9 @@ -(runningwater认领) -Linux Terminal: Seeing the unseen characters with cat! +Linux终端:用cat命令查看隐藏的字符 ================================================================================ Sometimes a program or software don’t start for a syntax error, and if you check the files there is nothing wrong..apparently. -There are a lot of characters that usually are not printed if you use a normal text editor, but you can easily check if they are present with your terminal and the command cat. +There are a lot of characters that usually are not printed if you use a normal text editor, but you can easily check if they are present with your terminal and the command cat.某些时候,一个程序或软件并没有语法错误,并且你检查它的相关文件也确实没有发现问题。这是因为你用普通文本编辑器软件来查看的时候,有许多字符没有显示出来,但在终端下面使用cat命令可以很容易的检测出是否存在这些字符。 -As first thing let’s create a simple text file with these special characters, open a terminal and run the command: +As first thing let’s create a simple text file with these special characters, open a terminal and run the command:首先,我们创建一个简单的文本文件,写入一些特殊的字符,打开终端,运行命令: printf 'testing\012\011\011testing\014\010\012more testing\012\011\000\013\000even more testing\012\011\011\011\012' > /tmp/testing.txt From c5f7a2627e75bbc03e1e93091133e0d1a0c4c50a Mon Sep 17 00:00:00 2001 From: runningwater Date: Tue, 15 Oct 2013 22:41:56 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-Seeing the unseen characters with cat!.md | 79 ------------------- 1 file changed, 79 deletions(-) delete mode 100644 sources/Linux Terminal--Seeing the unseen characters with cat!.md diff --git a/sources/Linux Terminal--Seeing the unseen characters with cat!.md b/sources/Linux Terminal--Seeing the unseen characters with cat!.md deleted file mode 100644 index 4ac57b1edd..0000000000 --- a/sources/Linux Terminal--Seeing the unseen characters with cat!.md +++ /dev/null @@ -1,79 +0,0 @@ -Linux终端:用cat命令查看隐藏的字符 -================================================================================ -Sometimes a program or software don’t start for a syntax error, and if you check the files there is nothing wrong..apparently. -There are a lot of characters that usually are not printed if you use a normal text editor, but you can easily check if they are present with your terminal and the command cat.某些时候,一个程序或软件并没有语法错误,并且你检查它的相关文件也确实没有发现问题。这是因为你用普通文本编辑器软件来查看的时候,有许多字符没有显示出来,但在终端下面使用cat命令可以很容易的检测出是否存在这些字符。 - -As first thing let’s create a simple text file with these special characters, open a terminal and run the command:首先,我们创建一个简单的文本文件,写入一些特殊的字符,打开终端,运行命令: - - printf 'testing\012\011\011testing\014\010\012more testing\012\011\000\013\000even more testing\012\011\011\011\012' > /tmp/testing.txt - -Now if you open the file with an editor you’ll have different results. -A simple cat will show: - - $ cat /tmp/testing.txt - testing - testing - - more testing - - even more testing - -While if you open it with nano or vim you’ll see : - - testing - testing^L^H - - more testing - ^@^K^@even more testing - -Now we can see some options of cat to print special characters. - -1) Use cat -T to display TAB characters as ^I - - cat -T /tmp/testing.txt - testing - ^I^Itesting - - more testing - ^I - even more testing - ^I^I^I - -2) Use cat -E to display $ at end of each line - - $ cat -E /tmp/testing.txt - testing$ - testing - $ - more testing$ - - even more testing$ - $ - -3) Use a simple cat -A to show up all the invisible characters: - - $ cat -A /tmp/testing.txt - testing$ - ^I^Itesting^L^H$ - more testing$ - ^I^@^K^@even more testing$ - ^I^I^I$ - --------------------------------------------------------------------------------- - -via: http://linuxaria.com/pills/linux-terminal-seeing-the-unseen-characters-with-cat?lang=en#more-7645 - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 - -译者:[runningwater](https://github.com/runningwater) 校对:[校对者ID](https://github.com/校对者ID) - -[1]: -[2]: -[3]: -[4]: -[5]: -[6]: -[7]: -[8]: -[9]: -[10]: From 587c5337839a7941116475a51b1b75c69c40c174 Mon Sep 17 00:00:00 2001 From: runningwater Date: Tue, 15 Oct 2013 22:50:11 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-Seeing the unseen characters with cat!.md | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 translated/Linux Terminal--Seeing the unseen characters with cat!.md diff --git a/translated/Linux Terminal--Seeing the unseen characters with cat!.md b/translated/Linux Terminal--Seeing the unseen characters with cat!.md new file mode 100644 index 0000000000..ff9f5778c0 --- /dev/null +++ b/translated/Linux Terminal--Seeing the unseen characters with cat!.md @@ -0,0 +1,77 @@ +Linux终端:用cat命令查看隐藏的字符 +================================================================================ +时常,某个程序或软件并没有语法错误,并且你检查它的相关内容也确实没有发现问题。这是因为你用普通文本编辑器软件来查看的时候,有许多字符没有显示出来,但在终端下面使用cat命令可以很容易的检测出是否存在这些字符。 + +首先,我们创建一个简单的文本文件,写入一些特殊的字符。打开终端,运行命令: + + printf 'testing\012\011\011testing\014\010\012more testing\012\011\000\013\000even more testing\012\011\011\011\012' > /tmp/testing.txt + +现在用不同的编辑器软件打开,显示的结果不会相同。用简单的cat打开将显示: + + $ cat /tmp/testing.txt + testing + testing + + more testing + + even more testing + +然而用nano或者vim打开,将会看到: + + testing + testing^L^H + + more testing + ^@^K^@even more testing + +现在我们给cat加上一些选项参数,以便能显示出特殊字符来。 + +1) 用cat -T命令来显示TAB键的字符^I + + cat -T /tmp/testing.txt + testing + ^I^Itesting + + more testing + ^I + even more testing + ^I^I^I + +2) 用cat -E命令来显示行尾的结束字符$ + + $ cat -E /tmp/testing.txt + testing$ + testing + $ + more testing$ + + even more testing$ + $ + +3) 用简单的cat -A命令就可以显示所有不可见的字符: + + $ cat -A /tmp/testing.txt + testing$ + ^I^Itesting^L^H$ + more testing$ + ^I^@^K^@even more testing$ + ^I^I^I$ + +-------------------------------------------------------------------------------- + +via: http://linuxaria.com/pills/linux-terminal-seeing-the-unseen-characters-with-cat?lang=en#more-7645 + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 + +译者:[runningwater](https://github.com/runningwater) 校对:[校对者ID](https://github.com/校对者ID) + +[1]: +[2]: +[3]: +[4]: +[5]: +[6]: +[7]: +[8]: +[9]: +[10]: From b6420a75b0755d2c26d305fcb5ca3daa67cb23fc Mon Sep 17 00:00:00 2001 From: runningwater Date: Tue, 15 Oct 2013 23:50:57 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E3=80=90=E7=BF=BB=E8=AF=91=E4=B8=AD?= =?UTF-8?q?=E3=80=91Top=20Things=20To=20Do=20After=20Installing=20Ubuntu?= =?UTF-8?q?=2013.10=20Saucy=20Salamander?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...o Do After Installing Ubuntu 13.10 ‘Saucy Salamander’.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/Top Things To Do After Installing Ubuntu 13.10 ‘Saucy Salamander’.md b/sources/Top Things To Do After Installing Ubuntu 13.10 ‘Saucy Salamander’.md index 2310226482..1aa85844ae 100644 --- a/sources/Top Things To Do After Installing Ubuntu 13.10 ‘Saucy Salamander’.md +++ b/sources/Top Things To Do After Installing Ubuntu 13.10 ‘Saucy Salamander’.md @@ -1,4 +1,4 @@ -Top Things To Do After Installing Ubuntu 13.10 ‘Saucy Salamander’ +(runningwater翻译中)Top Things To Do After Installing Ubuntu 13.10 ‘Saucy Salamander’ ================================================================================ **Ubuntu 13.10 Saucy Salamander** will be released on coming **October 17th** with many new salient features, updates and significant performance improvements. In this brief how-to let us discuss how we can enhance Ubuntu 13.10 further for day to day activities. This post we will share some interesting insight and ideas about what you can and should do after a successful installation. @@ -406,7 +406,7 @@ via: http://www.unixmen.com/top-things-installing-ubuntu-13-10/ 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 -译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID) +译者:[runningwater](https://github.com/runningwater) 校对:[校对者ID](https://github.com/校对者ID) [1]:http://www.unixmen.com/upgrade-ubuntu-13-04-raring-ubuntu-13-10-saucy-salamander/ [2]:http://www.unixmen.com/2012003-howto-resolve-nosound-problem-on-ubuntu/ @@ -446,4 +446,4 @@ via: http://www.unixmen.com/top-things-installing-ubuntu-13-10/ [36]:http://www.unixmen.com/clean-up-your-linux-systems-using-bleachbit/ [37]:http://www.opera.com/browser/ [38]:http://www.google.com/chrome/index.html?hl=en-GB&brand=CHMB&utm_campaign=nl&utm_source=nl-ha-emea-nl-bk&utm_medium=ha -[39]:http://www.unixmen.com/how-to-install-google-earth-in-linux/ \ No newline at end of file +[39]:http://www.unixmen.com/how-to-install-google-earth-in-linux/