Week 1

In the first week I learned a lot some important terminal commands that any developer must know in order to be able to talk to computer devices.

Terminal, in the nutshell term is like the man in the middle between the computer device and the developer. Since the computer does not know the developer’s language, there has to be something to allow the developer to be understood by the computer device, and thing has to know the developer’s language as well. This thing is called the “terminal command”.

Here are some of the terminal commands I learned during the first week of web developer journey:

When you are in the terminal, anything before the $ in the directory you are current in.

pwd prints the path of the director you are in.

cd sends to the home folder

cd .. (there is space between cd and ..) leaves the current folder and to the immediate higher directory

mkdir actualize creates a new folder called actualize in the folder you are in.

touch file.txt creates a file named file.txt in your current directory

rm filename removes the the file named filename

rmdir actualize removes the empty folder called actualize.

How do we remove a folder that contains other folders and or files?

Be careful!!! When you delete something from the terminal it does not go to the trash folder, it gets deleted permanently.

rm -rf removes folder with contents

ls To see the contents of a folder

ls -a will show all the contents including the hidden ones

mv filename1 filename2 changes the filename1 to filename2.

It is time to learn now some Hotkeys for terminal commands that are very helpful for a developer

  1. tab autocompletes a file path
  2. up/down arrow see the command histories
  3. CTRL + R let’s search through command histories
  4. CTRL +L or CMD + K clears up the terminal screen
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.