Home » Open System-Linux
1 2 3 ... 6 7 »

Hello folks,

In this tutorial we shall earna basic stuff.

 

So we have a .pem file which is key file to login to a remove server. 

Usually this is needed when you create a remote server on Cloud  and you choose to login with a key pair.

Or you create a key pair, in that case you will be given a *.pem file.

So please follow below steps to generate private key and public key from this file.

  1. Download puttygen from here https://www.puttygen.com/
  2. Install puttygen and run puttygen.exe
  3. Once the page pops up like below
  4. ... Read more »
Category: Open System-Linux | Views: 667 | Added by: shanky | Date: 2019-09-27 | Comments (0)

Today, we shall talk about one of the most frequently used command in Linux.

TAIL

The command is used to print last 10 lines of a file.

tail -f is used to print the last 10 lines plus it keeps on reading the file if a new data is added to the file.

tail -f can be used if a log is currently being updated. 


But then what is the use of tailf?

tailf is similar to tail -f except one difference that tailf does access the file if the file is not being updated or not growing.

 

... Read more »

Category: Open System-Linux | Views: 1742 | Added by: shanky | Date: 2017-08-22 | Comments (0)

Hello open system guys,

we always get into situation where by we have to copy files from windows to/from Linux/UNIX/AIX syetsm. 

When this happens there is pretty much a chance that the ctrl - M character may be found in the files we receive from Window system.


 

If there is a control - M character in a batch or a script , the script will failed as hell saying "command not found"

The resolution is we have to remove them.

In today's article i will tell you how to do this using perl command.

I have already shared the linux/Unix co ... Read more »

Category: Open System-Linux | Views: 1350 | Added by: shanky | Date: 2017-08-13 | Comments (0)

Hi Linux lovers,

 

I am back with some cools tools from my box of Linux.

We all want that our work should be easy and fun and we always witness that many of the tasks are automated reducing manual efforts. We shall talk about some useful logic/ideas that will enable you ease your daily work in LINUX./UNIX/AIX environment.

 

1. Use as many aliases as you can

There are several command that we have to enters very very frequently. like going to certain folder, checking some process is running or not listing latest 10 files in a directory etc. so why to enter the entire command again and again?

Create custom and logical aliases for them. 

... Read more »

Category: Open System-Linux | Views: 1697 | Added by: shanky | Date: 2017-01-21 | Comments (0)

  • Hello Guys, today we shall practice some commands that are frequently used to analyse the zipped and/or archived files in open system
  • These command can help you greatly to work with *.gz, *.zip, *.tar files . 
  • I have collected some examples from my work experience that can be helpful to dig into such files.

1. Just list out the files inside a ZIP

Below is the command that will show what are the files present inside the ZIP without actually unzipping them.

shanky@portal:[UAT]:>unzip -l TDS.HDGFF5163725.zip
Archive:  TDS.HDGFF
5163725.zip
  Length      Date    Ti ... Read more »

Category: Open System-Linux | Views: 1439 | Added by: shanky | Date: 2016-12-25 | Comments (0)

Hello Linux/Unix lovers,

I never knew that find command can be so useful. I have collated some cool find command example which can always help you in your work stations.

I am sure you all know the format of find command.

Format: 

find path criteria action


Example

find . -name "*.log" -exec ls -l {} \;

 

1. Find all the log file inside a folder/subfolder and delete or archive them.

fi ... Read more »

Category: Open System-Linux | Views: 2297 | Added by: shanky | Date: 2016-12-11 | Comments (0)

Hi Guys,
Welcome back,

Being a consultant in DBS project I have witnessed many cased where the shell script that is copied or created may contain some special characters. This happens when the script is copied from windows system to AIX and the script was having extra spaces.

So, if the script is having such speciall characters, it might not get executed successfully throwing error as below:

 

Command not found: ^M

 

The solution is we have to find and remove all special characters like these from the script.

Here we shall practice a very simple way to do the same. 

1. Using command tr. ... Read more »

Category: Open System-Linux | Views: 2022 | Added by: shanky | Date: 2016-10-12 | Comments (0)

Facter - Collect and display facts/information about the system like uptime, OS info, memory usage, PATH, processor, n/w etc.

FORMAT
       facter [-d|--debug] [-h|--help] [-p|--puppet] [-v|--version] [-y|--yaml] [-j|--json] [fact] [fact] [...]

DESCRIPTION
       Collect  and  display  facts about the current system. The library behind Facter is easy to expand, making Facter an easy way to collect information about a system from within the shell or within Ruby.


OPTIONS
       
puppet:  Load the Puppet libraries, thus allowing Facter to load Puppet specific (custom) facts

... Read more »

Category: Open System-Linux | Views: 1603 | Added by: shanky | Date: 2016-05-24 | Comments (0)

We very often use the inbuilt variable $? in linux to check the status of last command used.

To find if the last command is correctly executed, we fire echo $? always. If it return 0, the command is successfully completed else some error occured while executing the command.


See below example.

shankys:~> date
Wed May 11 06:50:07 CEST 2016

shankys:~> echo $?
0

shankys:~> date 9
... Read more »

Category: Open System-Linux | Views: 1592 | Added by: shanky | Date: 2016-05-11 | Comments (0)

AT command is used to schedule/run a command at a later time, 1 hour later, 2 mins from now, 1 week later or one month later.

FORMAT
       at [-V] [-q queue] [-f file] [-mldrbvt] TIME
       at -c job [job...]
       atq [-V] [-q queue]
       atrm [-V] job [job...]
       batch [-V] [-q queue] [-f file] [-mv] [TIME]


DESCRIPTION
       at  and  batch read commands from standard input or a specified file which are to be executed at a later time, using /bin/sh.

atq     lists the user's pending jobs, unless the user ... Read more »

Category: Open System-Linux | Views: 1405 | Added by: shanky | Date: 2016-04-14 | Comments (0)