Monday, January 20, 2020

Tuesday, August 13, 2019

Friday, June 21, 2019

Wednesday, July 25, 2018

Friday, April 27, 2018

Shell Script 'action' Command

'action' is defined inside a library called functions. You have to source your script first with this library in order to use it. This library is a distro distribution dependent and none of these distro libraries are compatible with the others. In Ubuntu is /lib/lsb/init-functions, SuSE has /etc/rc.status and in Centos is /etc/rc.d/init.d/functions. Some distributions don't use it at all. Example...

Wednesday, April 25, 2018

Set or Change System Hostname

This will return the current hostname $ hostname MyHostame To set hostname immediately: $ hostname [MY_HOSTNAME] This will change the hostname of your system immediately, but the original hostname will be restored upon next reboot. To set hostname to be permant follow the instructions below. For systemd based distributions(newer version of different Linux distributions such as latest Ubuntu, Debian,...

Thursday, March 1, 2018

shmget errno 22 EINVAL: "Invalid Argument"

The man page says: EINVAL A new segment was to be created and size < SHMMIN or size > SHMMAX, or no new segment was to be created, a segment with given key existed, but size is greater than the size of that segment. This means that a memory segment still persists in the system. If your process is no longer running, run the ipcs command and remove the segment with ipcrm. [root@myhost]# ipcs ------...

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Search This Blog

Powered by Blogger.