Archive for the ‘UNIX’ Category

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 […]

grep command in linux

The word grep stands for Globally Regular Expression Print. Using grep command in Linux/Unix, we can search one or more files for lines that contains pattern. Syntax: grep [options] pattern [files] Options: Option Description -b Displays the block number at the beginning of each line. -c Displays the number of matched lines -h Displays the […]

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.

Linux command to list all available commands

Linux commands those will list all available commands and aliases for current terminal session: compgen -c will list all the commands you could run. compgen -a will list all the aliases you could run. compgen -b will list all the built-ins you could run. compgen -k will list all the keywords you could run. compgen […]

Linux commands

Linux /unix Client machine: Windows operations systems Windows msDos Windows 95 Winodows 98 Windows xp Windows vista Windows 7 Windows 8 Windows10 Server editions: Windows 2000 server Windows 2003 server Windows 2008 server

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 […]

Powered by k2schools