Tuesday, 30 October 2018

Examples of Awk Command in Unix - Part 2

1. Inserting a new line after every 2 lines We will see how to implement this using the awk command with an example.  The input "file.txt" contains the below data: 1 A 2 B 3 C 4 D 5 E 6 F Let say, we want to insert...

Monday, 29 October 2018

5 tricks for using the sudo command

The sudoers file can provide detailed control over user privileges, but with very little effort, you can still get a lot of benefit from sudo. In this post, we're going to look at some simple ways to get a lot of value out of the sudo command in...

Wednesday, 24 October 2018

5 Ways to Send Email From Linux Command Line

We all know the importance of emails these days for information transfer. There are many free emails service providers which we used for use like Gmail, Yahoo, RediffMail etc, which provides a web interface for sending and receiving emails. But this is not enough, sometimes we also required...

Saturday, 20 October 2018

File Test Operators / Operations Examples in Unix / Linux Shell Script

In linux and unix operating systems every thing is a file. When you are using files in your shell or bash script, it is a good idea to do some tests on the file before using it. The file tests include: ◈ Checking for existence of the file....

Thursday, 18 October 2018

Bash Shell Script to Read / Parse Comma Separated (CSV) File - Unix / Linux

Q) How to parse CVS files and print the contents on the terminal using the bash shell script in Unix or Linux system? It is the most common operation in Unix system to read the data from a delimited file and applying some operations on the data. Here...

Saturday, 13 October 2018

Crontab in Linux with 20 Useful Examples to Schedule Jobs

The crontab is used for running specific tasks on a regular interval. Linux crontab is similar to windows task schedules. Crontab is very useful for routine tasks like scheduling system scanning, daily backups etc. Crontab executes jobs automatically in the backend on a specified time and interval. In...

Thursday, 11 October 2018

Git Command with Practical Examples on Linux – Part 2

In previous article we have learned basic Git workflow. In this article we’ll be focusing on some advanced features like miscellaneous repository actions, branching and tagging. Miscellaneous repository actions Rename As name suggests rename operation instructs Git that traced file has been modified. To rename file execute following...

Tuesday, 9 October 2018

Linux Professional Institute Rolls Out its Global Training Partner Program to Japan

LPI’s global partner program has been expanded to meet the needs of training companies in Japan. Linux Professional Institute (LPI), the world’s largest organization focusing on certification and support for people working with open source, is expanding and enhancing its globally-tested training partner program in Japan. The launch...

Saturday, 6 October 2018

Mastering the “Kill” Command in Linux

It doesn’t matter which operating system you are using – you will surely come across a misbehaving application that locks itself up and refuses to close. In Linux (and Mac) there is a “kill” command that you can use to terminate the application forcefully. In this post we...

Thursday, 4 October 2018

Debugging Shell Scripts in Linux

In most of the programming languages debugger tool is available for debugging. A debugger is a tool that can run a program or script that enables you to examine the internals of the script or program as it runs. In the shell scripting we don”t have any debugger...

Monday, 1 October 2018

10 ‘rm’ command examples for beginners

rm stands for ‘remove‘ as the name suggests rm command is used to delete or remove files and directory in UNIX like operating system. If you are new to Linux then you should be very careful while running rm command because once you delete the files then you...

Pages (26)1234567 »