Archive for the ‘UNIX’ Category

How to get list of users in Linux

The /etc/passwd file is used to keep track of every registered user that has access to a system. Sometimes, we want to know the list of local users. If we want to get list of users in terminal, run below command. cut -d: -f1 /etc/passwd If we want to save this output in file, then […]

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 find ip address on Linux

This is basic tutorial for unix/linux administrators to findout the ip address of Linux machine/host. Following are the different commands to findout the ip address. 1. Using /sbin/ifconfig

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

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.

Powered by k2schools