Sunday 6 March 2016

First baby step toward Linux

Past around 2 years I was working at iQor as a electronics engineer and wanted to give a chance to software industry and I heard about Linux (an open source operating system) which is a perfect platform if you want to start your career in software industry.

I wanted to switch to linux as its a commercial quality software to work with business documents, internet, networking, graphics etc. Also there are hundreds of free, high quality application which can be easily downloaded. So I moved ahead learning the basic commands used in Linux from hard way to learn shell.

The first command I learnt was pwd(print working directory) which is very helpful as it tells in which directory we are. It rescued me many times when I got lost amidst of directories in CLI(Command Line Interfece) while navigating.

Then I went through lot of commands as
- `mkdir`( Make A Directory) used to make directories
- `cd`( Change Directories) a way to navigate to a directory to check log, execute a program/application/script and for every other task.
- `ls` one of the most frequently used command in Linux to list files and directories (along with different options like -l, -a ... etc.).
- `rmdir` to delete directories but it fails if the directory contains files or subdirectories. So we use -p and -r options.
- `pushd` and `popd`, allow to manipulate the directory stack. It is used to change directories and return to the directory from which we came.
- `touch` command used to create empty files.
- `cp` to copy directories and cp - r for copying directories recursively.
- `mv` used to move or rename files.
- `cat` command used to create single or multiple files, view contain of file.
- `rm` to remove files, it doesn't remove directory with files in it, for this we have to recursively delete all of its content(rmdir -r)
- `find` command used to search and locate list of files and directories based on condition we specify for files that match the arguments.

Also learnt about Wildcards which commands can use to perform actions on more than one file at a time, or to find part of a phrase in a text file.

Next step will be learn more about CLI and vim (text editor) to get more exposure in Linux world.

No comments:

Post a Comment