Nifty Information Technology

Starting With Linux

Linux was developed by young Linus Torvalds when he was a computer science student. He used to work on the UNIX OS and thought that it needed improvements. He had sent many suggestions to the Unix team but they were not taken to consideration.

Linus Torvalds

When his suggestions were rejected by the designers of UNIX, he thought of launching an OS that will be receptive to changes, modifications suggested by its users.

Linus devised a Kernel named Linux in 1991. Though he had the operating system there were applications like file manager, document editors,audio-video programs to run on it.

But as time passed by Linus collaborated with programmers from MIT and applications for Linux started to appear. So around 1991 Linux OS was launched officially with some applications and it was the most loved open-source option available.

The main advantage of Linux was that programmers were able to use the Linux kernel to design their own custom operating systems. With time, a new range of user-friendly OSs stormed the computer world. Currently, Linux is one of the most popular and widely used kernels, and it is the backbone of popular operating systems like Debian, Knoppix, Ubuntu, and SUSE.

Structure Of Linux OS

Linux Basic commands :

When we think about Linux the first thing which comes to our mind is the complicated operating system that is used by programmers. But it’s not as scary as it seems.

When operating a Linux OS, you need a shell – an interface that gives you access to the operating system’s services. Most Linux OSs use a GUI as their shell, mainly to provide ease of use for their users.

Even though there is a GUI it is recommended to use the command-line interface (CLI) because it’s more powerful and effective. Tasks that require a multi-step process through GUI can be done in a matter of seconds by using CLI.

Now let’s learn few basic command lines which will definitely help you to navigate through Linux as a newbie.

For using the commands you have to open the “terminal” in Linux.

Another scenario is when you want to go completely different directory. Example, /home/nifty/movies. In this case, type “cd absolute path”

There are some shortcuts to help you navigate quickly:

cd .. (To move one directory up)

cd (to go straight to the home folder)

cd- (to move to your previous directory)

Note: Linux shell is case sensitive. So, you have to type the name exactly as it is.

The variants of the ls command are mentioned below :

ls -R (Will list all files in the subdirectories as well)

ls -a (Shows the hidden files)

ls -al (will list the files and directories with detailed information)

Other ways to use cats:

cat > filename (Creates a new file)

cat filename1 filename2>filename3 (Join 2 files 1 and 2 and stores the result in file 3)

Cat filename | tr a-z A-Z >file.txt (will convert a file to uppercase or lowercase)

Example: cp scenery.jpg /home/nifty/photos would copy scenery.jpg into the photos directory.

The arguments in mv are similar to the cp command. You need to type mv, the file’s name, and the destination directory.

Example: mv filename.txt /home/nifty/Documents

To rename , mv oldname.ext newname.ext

Note: Double-check before doing it because there is no undo