working with files

In this post we learn how to recognise, create, remove, copy and move files using commands like file, touch, rm, cp, mv and rename. all files are case sensitive Files on Linux (or any Unix) are case sensitive. This means that FILE1 is different from file1, and /etc/hosts is different from /etc/Hosts (the latter one … Read more

working with linux directories

This module is a brief overview of the most common commands to work with directories: pwd, cd, ls, mkdir and rmdir. These commands are available on any Linux (or Unix) system. pwd The you are here sign can be displayed with the pwd command (Print Working Directory). Go ahead, try it: Open a command line … Read more

LINUX LICENSING

This post briefly explains the different licenses used for distributing operating systems software. about software licenses There are two predominant software paradigms: Free and Open Source Software (FOSS) and proprietary software. The criteria for differentiation between these two approaches is based on control over the software. With proprietary software, control tends to lie more with … Read more

LINUX DISTRIBUTIONS

This post gives a short overview of current Linux distributions. A Linux distribution is a collection of (usually open source) software on top of a Linux kernel. A distribution (or short, distro) can bundle server software, system management tools, documentation and many desktop applications in a central secure software repository. A distro aims to provide … Read more

Linux history

This post briefly tells the history of Unix and where Linux fits in.   1969 All modern operating systems have their roots in 1969 when Dennis Ritchie and KenThompson developed the C language and the Unix operating system at AT&T Bell Labs.They shared their source code (yes, there was open source back in the Seventies) … Read more

Famous Hackers

Jonathan James Jonathan James was an American hacker. He is the first Juvenile who send to prison for cybercrime in the United States. He committed suicide on 18 May 2008, of a self-inflicted gunshot wound. In 1999, at the age of 16, he gained access to several computers by breaking the password of a NASA … Read more

Use of Semicolons in Shell Script

shell programming

Use of Semicolons in Shell Script Instead of being on separate lines, statements can be separated by a semicolon (;) – For example: if grep “UNIX” myfile; then echo “Got it”; fi – This actually works anywhere in the shell. % cwd=`pwd`; cd $HOME; ls; cd $cwd  

if Statement in Shell Script

shell programming

if Statement in Shell Script Simple form: if decision_command_1 then command_set_1 fi   Example: if grep unix myfile >/dev/null then echo “It’s there” fi