Posts Tagged ‘unix’

Difference between Windows and Unix

Windows Unix It is graphical User Interface It is Command Line Interface This is thread based concept This is processs based concept To boot Windows operating system 12MB RAM is required To boot Unix operating system 2MB RAM is required In Windows if any user process killed, it effects all. In Unix,if any user process […]

Differences between hard link and soft link

What is link Unix: To give a pointer to the source file called as a link. In Unix/Linux there are two types of links 1. Soft link and 2. Hard link. Soft Links Hard Links The inode number for the source file and link file are different Source file and link file has same inode […]

How to create cron jobs

In any operating system, it is possible to create jobs that we want to reoccur. This process known as job scheduling. There are two tools to schedule jobs: 1. at 2. crontab Crontab: Any user can create a cron job. As the root user, we can also have the ability to edit and remove any […]

scp command in linux

SCP: SCP stands for Secure Copy. SCP is used to copy data from one unix/linux sserver to another unix/linux server. SCP uses ssh(secured shell) to transfer the data between the remote hosts. Features of SCP are: Copies files within the same machine. Copies files from local machine to remote machine Copies files from remote machine […]

Linux echo command

Echo is used to display the text or variables on the output screen. Echo is built-in command. Echo is older form of printf command. Linux/Unix echo command does not use format string like older form of printf. Options: -n: Which means No New Line. A line feed is automatically added after the string is displayed, […]

cat command in Linux

cat is short for Concatenate. cat is used to create a file and display, appending the contents of a file. Usage: cat [OPTION]… [FILE]… Concatenate FILE(s), or standard input, to standard output.

Linux and Unix Tail Command

Tail command used to display the last 10 lines of a file in Linux or UNix systems.By default, it displays last 10 lines of the file. But, we can get last 100 or 200 lines of a file. Usage: tail [OPTION]… [FILE]… Options: Mandatory arguments to long options are mandatory for short options too.

egrep command

the egrep command is the most powerful member of the grep command family, you can use it like fgrep to search for multiple targets. Like grep, it allows you to use regular expressions to specify targets, but it provides a fuller, more powerful set of regular expression the gr The grep command accepts all of […]

fgrep command in unix

the fgrep command is similar to grep, but with 3 main differences, you can use fgrep to search several targets at once, it does not allow you to use regular expressions to search for patterns, and is faster then grep.when you need to search a large files or several small files the differences in speed […]

Using grep to locate files

If you give grep two or more files to search, it it includes the name of the file before each line of output. The following command searches for lines cintaining the string “JAVA” in all of the files in the current directory. $grep JAVA * schools : 100 vinod java k2schools k2schools: 110 rajesh java […]

Powered by k2schools