Command line and arguments

In many cases command line is more handy to use. But that’s applies only if you know what to do. Well the basic commands are quite easy “ls” – list files and folders in current directory, “pwd” – print working directory, “cd” – change directory and so on. But on top of that with different commands it is possible to use arguments or so-called flags.

One of the example would be “ls -a” which means something like list All the folders and files in the directory. When it comes to application it is always possible to see the arguments that particular application can accept using “-h” parameter, for example “nano -h”, and then I can for example find a “-V” parameter which with most of other applications as well will display current version and year of build of the application. The other example would be with apt-get package manager, it is possible to pass a parameter “-y” so that all the question will be answered with yes.

There are many other flags and it is quite difficult to learn them and with which application they can be used without really trying out at need. So probably it would be a good idea to learn command line commands and arguments while you actually trying to do something with terminal. Over and out.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>