Linux commands: Difference between revisions
Jump to navigation
Jump to search
m
→Display the content of text file
| Line 15: | Line 15: | ||
* [http://www.tuxfiles.org/linuxhelp/vimcheat.html vim] <nowiki>[options]</nowiki> ''filename'' (and press {{kbd | key=gg}}) ({{Linux}}); Open file and press {{kbd | key=gg}} for [http://www.vim.org/ gVim] ({{Win}}) | * [http://www.tuxfiles.org/linuxhelp/vimcheat.html vim] <nowiki>[options]</nowiki> ''filename'' (and press {{kbd | key=gg}}) ({{Linux}}); Open file and press {{kbd | key=gg}} for [http://www.vim.org/ gVim] ({{Win}}) | ||
==== Display the first xxx | ==== Display the first xxx bytes of text file ==== | ||
* On {{Linux}}, To display the first | * On {{Linux}}, To display the first bytes characters of text file<ref>[https://unix.stackexchange.com/questions/167814/get-first-x-characters-from-the-cat-command cut - get first X characters from the cat command? - Unix & Linux Stack Exchange]</ref> | ||
<pre> | <pre> | ||