anything sent to /dev/null will be eaten like a digital black hole ONLY try this on test VM if you want to destroy ! do not cut and paste on live or production systems – use at your own risk. For testing purposes only – DESTRUCTIVE COMMAND! mv / /dev/null
Tag: featured
chattr command – rarely used gem
Cool Command Perform as root set this bit to esnure file cannot be accessed to anyone ;even root # chattr +i foo_file undo the above # chattr -i foo_file show attributes # lsattr foo_file i——– foo_file The following bit allows only appending to a file – not changing existing content # chattr +a foo_file to unset execute below […]
Updating Dell PowerEdge servers via bootable media / ISO
Credit DELL: http://www.dell.com/Support/Article/ca/en/cabsdt1/SLN296511 This article provides information about how to update all the firmware for your Dell PowerEdge servers in one step via the ISO images (ISO-files) provided below. These include a small bootable Linux distribution and a collection of all firmware (repositories) for a specific server model. The updates are done automatically after starting […]
MYSQL – command line determine database size
1. Log in to your account using SSH. 2. mysql -u username -p 3. SELECT table_schema “Data Base Name”, sum( data_length + index_length ) / 1024 / 1024 “Data Base Size in MB”, sum( data_free )/ 1024 / 1024 “Free Space in MB” FROM information_schema.TABLES GROUP BY table_schema ;
Solaris Fibre Channel Commands
To see info on all fc ports: fcinfo hba-port -l To see port status: luxadm -e port Show link errors: luxadm -e rdls /dev/cfg/c3 Examine and individual path: luxadm disp /dev/rdsk/c2t500601603022431Ed0s2 Run an inquiry on a disk: luxadm inq /dev/rdsk/c2t500601603022431Ed0s2 Display info on scsi devices: cfgadm -al Sun Multipather examples Shows the fc ports: mpathadm […]
How to downgrade kernel and redhat-release to a previous minor version of Red Hat Enterprise Linux
Source: How to downgrade kernel and redhat-release to a previous minor version of Red Hat Enterprise Linux SOLUTION VERIFIED – Updated July 24 2014 at 11:03 AM – English Environment • Red Hat Enterprise Linux (RHEL) 6 • Red Hat Enterprise Linux (RHEL) 5 Issue • The kernel and redhat-release packages have been upgraded to a version later […]