Skip to main content

Taking Command of Command Line - 1


Taking Command of Command Line-1

Lets us explore the way we use terminals or a command prompt this series of Blogs will be on the numerous commands which helps you navigate through out your filesystem and OS.

The Power and Perils of GUIs.
 We can’t imagine the world without GUI today from our IDE’s , Browsers,Database Dashboard etc we have everything in GUI today. Whats a deal with it. That makes us easy to use easy to navigate isn't it nope.

Why Command Line?
 There are many reasons that one must know about command line
 These are the top three:1 ability to automate the task.
      2.Counter Productive.
      3.awareness of how system or a language works in ground level.(as a                                                          programmer).

Lets Don’t Be Slaves Of our IDE’s
Let's not be slave of our IDE’s instead lets learn in and out of compiling and playing with a language this makes us more productive when we tend to use of IDE’s for complex projects.(i am not telling you to stop using IDE’s at workplace instead IDE’s are meant to be use in more efficient way as the way we use - it should not the one which predict or vomit the code for us).

Learning to automate
This is magic learning to automate makes you magician real power of command line lies in automating a certain task. You can automate any task write a shell scripts.that make a productive.

Productive
You can leverage the Operating System to the greatest level and be more Productive.

Comments

Popular posts from this blog

Taking command of command line - 7

Taking command of command line - 7 Current Directory: Knowing current working directory in Unix-like system. The command that will print us the current directory is pwd - print working directory. On Windows The plain cd command in windows will print the current working directory.   In,Cygwin its is as same as in Unix like system just use pwd to get the current working directory on windows.

Taking command of the command line - 8

  Taking command of the command line - 8   Changing directory Changing around the different directory is what we always wanted to do most often.There are lot of cool way to do that other than cd lets have a look at them in details. Cd command   First and for most the cd <directory-name> command will change the   directory. Same stands true on windows to just use cd<directory-name> . Previous Directory. For both windows and Unix-like system use cd .. to go back to the previous directory. Returning back to the current directory. It's more often people use cd .. to again. Na !! But using this you go off to the root. Of your system again its a bit far root to come along the directory we are in . Instead use cd -   — cd <minus - > command return back to current directory you're previously in . For ex: cd   /<dir1>/<dir2> Pwd   User/dir1/dir2: By using cd - you’ll again brin...

Taking command of command Line - 6

Taking command of command Line - 6 Changing Prompt Why change prompt? Whenever we open the terminal or command line in windows we see a long path where we are sometimes it helps. Some time the length of the prompt make us annoying isn’t it.lets see how to change the prompt and then customise the name what you like. On Unix-Like machines. Just use export PS1=“> ” this will come up with a   > instead of showing the file path you're in. It is not mandatory to give > in “” give what ever you like give the user name and so on .   For eg export PS1=“USER:>”   this will give you USER:> for line of the input. This stands good for bash shell please find   other tricks for different shells. In Cygwin its stands the same as in Mac.   For Windows   Its an easy trick here just use prompt $G will give you the > symbol Or say prompt user   where user - is give the option of your choice. Eg Before using se...