how to list and delete shared memory in linux?
how to list and delete shared memory in linux?
List all shared memories in your Linux Systems
> $ ipcs -m
Delete specific one
> $ ipcrm -M 0x0001869c
how to list and delete shared memory in linux?
List all shared memories in your Linux Systems
> $ ipcs -m
Delete specific one
> $ ipcrm -M 0x0001869c
In Bash, ~username gives the username user’s home. However, this does not work for situations where username is in a variable such as ~$user How to get the home directory from the user name in a variable in Bash? You can use this Bash script snippet: userhome=$(eval echo ~$user) Here, $user get evaluated to its…
Update: Since gitosis is not maintained and supported, please check out gitolite for setting up a new git server. (see the comment from Sitaram Chamarty, the gitolite author, the author of gitolite.) Gitosis is a piece of software writen by Tommi Virtanen for hosting git repositories. It manages multiple repositories under the same user account….
How to install node.js on Fedora? You may install it by: # yum install nodejs npm Read more: How to install node.js on Ubuntu/Linux Mint? How to parse POST data in node.js? How to exit the program in Node.js? How to convert an object to json in Node.js? In Node.js, how to import functions from…
How to configure iptables and make the configuration persistent across system restarting on Linux Mint 17.1? You can use the ‘iptables-persistent’ tool. To install iptables-persistency pachage: sudo aptitude install iptables-persistent The you can manipulate the iptables by the ‘iptables’ command. To save the current iptables rules: sudo /etc/init.d/iptables-persistent store It will store the rules for…
How to reset the keyboard set by xmodmap on Linux? You can reset your keyboard settings by: setxkbmap or setxkbmap -option depending on the way the keyboard was set by xmodmap. Read more: How to reset the Disqus WordPress plugin installation How to hard reset an Amazon Kindle How to force iPhone to reboot/restart/reset? How…
Grub2: How to boot Fedora to an old kernel? The old kernel is a submenu under “Advanced options for Fedora”. It is not shown if I follow the instruction that # grep menuentry /boot/grub2/grub.cfg | cut -d “‘” -f2. The old kernel in grub2 is in a submenu entry in a menu. The key is…