Linux commands: Difference between revisions

Jump to navigation Jump to search
34 bytes added ,  22 January 2018
Line 24: Line 24:
* {{kbd | key=<nowiki>type <filename></nowiki>}}  ({{Win}})
* {{kbd | key=<nowiki>type <filename></nowiki>}}  ({{Win}})


Display the partial content of large text file
Display the partial content of large text file page by page
* {{kbd | key=<nowiki>cat <filename> | less</nowiki>}}  ({{Linux}}) {{exclaim}} Chinese issue<ref>[https://stackoverflow.com/questions/6943928/show-special-characters-in-unix-while-using-less-command linux - Show special characters in Unix while using 'less' Command - Stack Overflow] ''un-verified''</ref>
* {{kbd | key=<nowiki>cat <filename> | less</nowiki>}}  ({{Linux}} or Cygwin on {{Win}}) {{exclaim}} Chinese issue<ref>[https://stackoverflow.com/questions/6943928/show-special-characters-in-unix-while-using-less-command linux - Show special characters in Unix while using 'less' Command - Stack Overflow] ''un-verified''</ref>
* {{kbd | key=<nowiki>type <filename> | more</nowiki>}}  ({{Win}}) If the file was encoded in UTF-8, you need to key in {{kbd | key=chcp 65001}} first <ref>[http://fatting10.blogspot.tw/2015/08/solved-window.html (Solved) Window命令視窗中文亂碼 改編碼方法]</ref>.
* {{kbd | key=<nowiki>type <filename> | more</nowiki>}}  ({{Win}}) If the file was encoded in UTF-8, you need to key in {{kbd | key=chcp 65001}} first <ref>[http://fatting10.blogspot.tw/2015/08/solved-window.html (Solved) Window命令視窗中文亂碼 改編碼方法]</ref>.


Navigation menu