xsos – a tool for sysadmins and support

Here is a very nice article that you may find useful https://access.redhat.com/discussions/469323

change the output format for time command

If you are doing some scripting and using ‘time’ command, then you know sometimes it becomes difficult to capture the output as the output would be something like this: : amit ; time ls real 0m0.002s user 0m0.000s sys 0m0.001s So, it is better to change that format. Here is simple example: 1  TIMEFORMAT=’real %3R […]

Generate random string for various use case

Some times I need random string, for example to use as email seperator or to use in some API. One way is to use tools like /dev/[u]random or od and other such. But they seem cubersome after I figured this out. openssl rand <length> openssl rand 10 This alone without some parameters is not interesting […]