Command line, are you afraid ?
Posted by: Wael Nasreddine in Linux, tags: bash, malicious-commands, shellEditors
There are many editors on the command line and unlike GUI-editors they are fast, very powerful and most importantly reliable, of course I will not enter the ViM/Emacs debate here, everyone has his own tasted and I respect that, for that reason I will only talk about the editor I use which is ViM, I’ve never truly explored emacs hence I won’t be able to provide accurate information about it and I prefer not to mention false information…
First I will begin with the very basic editor, nano/pico, it’s the same editor but it is installed in different names on different distributions, for example on Gentoo it’s nano while on Debian/Ubuntu it’s pico try both to know which one, for the sake of this article I will assume it is nano.
$ nano
To open up a simple editor window, just move around within, write all what you want inside and once you are done you need to save the file using Ctrl+O, nano will ask you where to save, just put the name and press Enter. NOTE: if you enter a filename without a path, the file will be saved in the working directory ( the folder you were in before opening nano ), once that is done you need Ctrl+X to quit nano. You can also use Ctrl+W to search within the file, for more information press Ctrl+G.
$ vim
To open up the ViM editor (ViM stands for VI (Spelled Vee-Eye) Improved), ViM will open in normal mode which means that if you all keys are commands not text, to start typing text press the key `i`, once you are done just hit Esc to revert back to normal mode then type `:w filename` ( Notice the text in the status bar ) and hit enter, then use `:x` to quit… For more information you should check Vim Official website.





Entries (RSS)
[...] Hytech Proffessionals - Programmer’s Heaven wrote an interesting post today onHere’s a quick excerpt Most people I know, whom aren’t very used to linux yet, are afraid of the command line, they think it’s hard to learn and somehow useless but that is entirely false… The command line is very easy to learn, well at least the basics of it, but you should know that the shell is much more powerful than anything you have, or will, ever use… In this small article I will try to show you all the basics on the command line, but first things first, let’s start with the directory layout: /bin: Conta [...]
[...] Contains databases and data files. Pages: 1 2 3 [...]
[...] Command line, are you afraid ? [...]