Skip to main content

Posts

Showing posts from April, 2019

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 - 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 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...

Taking command of Command Line - 5

Taking command of Command Line - 5 Clearing the Window. Why clear the window? We often to do lots of things on the go shifting out of focus . To be clear the terminal/ the command prompt we will often clear our screen more often.let’s see how to do it. Clearing on Unix-like system. clear - clear command will clear the window   in the terminal. Shortcut to clear the window is ctrl/Command + L . Clearing on Windows. cls - cls command will clear the windows in the command prompt.

Taking Command of Command Line - 4

Taking Command of Command Line - 4 Using unix-like command on Windows system. We do encounter lots of environments in our daily like may be it windows ,Mac OS nor Linux.   Is there are options that we can navigate through the file system in a linux way? The answer is yes there are lot of tools are there to help you Cygwin and git bash are few. This will give you the way to work like Linux like operating system on Windows.   Go there and install the tools of your choice.here we use Cygwin. Shells There are multiple flavours of shells like ksh, C shell, Bash etc. Bash are the popularly used we consider using bash in the further examples to. It's your choice of list to use the shells that you are familiar with. Install the Cygwin on your window machine downloading it from your Favourite Browser. During installation of Cygwin beware of selecting the Shells —> select chere: Cygwin Prompt here context menus click on it and install. Se...

Taking command of the command Line - 3

Taking Command of Command Line-3 On Mac, opening Finder From the Terminal From terminal , open . Command will open the Directory currently you are in. For eg type pwd it will you the current path of the directory you are in. Then just type open . Will open the window at which you're currently in. If you want to open the last directory just use open .. will get you the directory which is just behind the directory you are give it a try. If you want to open the directory you wanted just use open /directory Name for eg open /User. On Windows, opening the explorer From the command Prompt In the same way just use start . Will get you out the directory. start .. will give you the parent directory. start /directory-name will open the directory you wanted to open.   This tricks are quite productive to navigate the file system instead to touching your mouse and blobbing around the system. Hope it helps Thanks.   Happy Learning 😀

Taking Command of the Command Line - 2

Taking Command of Command Line-2 Opening command prompt on the Mac Finder.   As usual go to launchpad search for terminal click on it Terminal appears or press Command + Space to spotlight search and type terminal press enter. Bingo terminal Appears. Sometime we need to open the terminal form the directory we are in for that System Preferences —> Keyboard —> Shortcuts —> Services —>New Terminal tab at the folder. This will give you the flexibility to open a terminal from the folder you have to open the terminal. To open terminal from the respective folder/directory go to Finder —> Select Services —> select the terminal window here. Opening Command prompt on Window Explorer. This is a very easy go to Start —> Search for cmd press enter commas prompt appears. To open the command prompt form the certain folder . Go to the folder you want open the command prompt click on file —> select the option Open the command Prompt Fr...

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). L...

Designing Software

Designing Software. What is it really, is it really worth my time to spend some minutes to take this blog forward. Does this help, The Answer is yes. It is worth your time. The Question is what is Design? As like an Old school dictionary definition Design is a mapping of the concept or an idea to Implementation . Is it sufficient to put our thoughts to make thing Done? That’s what our managers think its lot more than that less see throughout of this blog what all the things make good Software or Typically what generic thing makes a system well Designed. 1. When Should we Design? Here we are all Software developers whose ideal goal is to write code by staring at the monitors. But doesn’t happen we are responsible take a refined requirement and move through the existing system relating it to problems on our hand. Later part is to press the trigger isn’t it.   Yes, we are all most often to be involved in Designing Software in one way or the O...

Strategic Design Vs Tactical Design.

Strategic Design Vs Tactical Design. We all have known or Unknowingly be part of Designing in the Strategic and Tactical Design in one or the other way to solve a problem on our hands. This Blog will get the Feeling of approaching a Design and make you aware of Strategic Design and Tactical Design in detail. We have all solved a problem in one are the other way and make them work, isn’t it. Yes, we exist sooner or later one thing we get to know we Just really sucks at coding. We make noise on the code we have written.   Before knowing how to avoid those things in first lets us know, how to approach a problem through Strategic Design and Tactical Design .let us see what are they all about. How to approach it? What are all the difference between Strategic and Tactical Design.there is no single way of doing the design I let u remains you this initially there can be multiple ways to do a single task in multiple different ways. But these approaches are strateg...