Sunday, 29 July 2018

Copy (cp) File And Directory Examples

Copy (cp) is the frequently used command in Unix (or Linux). The cp Command is used to copy the files from one directory to another directory. The cp command can also be used to copy the directories also. The syntax of cp command is cp [options] source destination...

Friday, 27 July 2018

ls Command in Unix and Linux Examples

ls is the most widely used command in unix or linux. ls command is used to list the contents of a directory. Learn the power of ls command to make your life easy. The syntax of ls command is ls [options] [pathnames] 1. Write a unix/linux ls command...

Tuesday, 24 July 2018

Linux I/O Redirection

Redirection can be defined as changing the way from where commands read input to where commands sends output. You can redirect input and output of a command. For redirection, meta characters are used. Redirection can be into a file (shell meta characters are angle brackets '<', '>') or...

Sunday, 22 July 2018

Linux Shell Commands

In Linux, commands are ways or instructions through which you can instruct your system to do some action. Commands are executed in the command line. Syntax: command [option] [argument] There are some commands which don't have any option or don't accept any argument such as 'clear' and 'pwd'....

Thursday, 19 July 2018

Unix / Linux - File Permission / Access Modes

We will discuss in detail about file permission and access modes in Unix. File ownership is an important component of Unix that provides a secure method for storing files. Every file in Unix has the following attributes. ◈ Owner permissions − The owner's permissions determine what actions the...

Wednesday, 18 July 2018

Split Command Examples in Unix / Linux

The Split command in unix or linux operating system splits a file into many pieces (multiple files). We can split a file based on the number of lines or bytes. We will see how to use the split command with an example. As an example, let’s take the...

Sunday, 15 July 2018

Split File Using Awk Command - Unix / Linux

The split command in unix is used for creating fixed size pieces of output files from a given input file. However there is no option in the split command for creating output files based on some conditions on the input file data. The awk command can be used...

Thursday, 12 July 2018

Different Types of Unix files

There are mainly three types of Unix files. They are ◈ Regular files ◈ Directories ◈ Special or Device files Regular Files Regular files hold data and executable programs. Executable programs are the commands (ls) that you enter on the prompt. The data can be anything and there...

Thursday, 5 July 2018

Kill Command Examples in Unix / Linux

The Kill command in unix or linux operating system is used to send a signal to the specified process or group. If we dont specify any signal, then the kill command passes the SIGTERM signal. We mostly use the kill command for terminating or killing a process. However...

Tuesday, 3 July 2018

Mail Command Examples in Unix / Linux

The Mail command in unix or linux system is used to send emails to the users, to read the received emails, to delete the emails etc. Mail command will come in handy especially when writing automated scripts. For example, you have written an automated script for taking weekly...

Pages (26)1234567 »