To Count Number of files in Dir & Sub dir
ls -laR | grep -c “^-.*” Original post blogged on b2evolution.
To Count Number of files in Dir & Sub dir Read More »
ls -laR | grep -c “^-.*” Original post blogged on b2evolution.
To Count Number of files in Dir & Sub dir Read More »
1. Boot from 1st linux CD. 2. Then when the computer boots, type in this parameter: 3. linux vnc vncpassword=123456 (minimum 6 characters) 4. Press Enter, then the kernel will be loaded. After that, we will be asked how to setup the network, either using DHCP or manually. Choose Manual if applies. 5. Enter the
How to Install Linux Remotely Read More »
We have received so many below alerts this weekend due to relocation failure due to less then 10% space left in pool. Received alerts like “FAST VP relocations fail with error code 712d841a with extended code 0xe12d8709.” Time Stamp 05/22/12 10:39:04 (GMT) Event Number 712d841a Severity Error Host SPB Storage Array FCN00120xxxxxx SP N/A Device
How do I deal with 712d841a alerts generated by custom templates? Read More »
#!/bin/sh ############################################# # # SYSTEM NAME : # SUBSYSTEM : # SHELL_NAME : RES_***restore.sh # FUNCTION : restore OS image for **** # USAGE : System Restore # CALLED BY : NONE # CALL TO : NONE # RETURNS : 0=OK, 1=NG # DESCRIPTION : restore OS image for **** # HISTORY : # 2009/04/29
Linux: BAK_***restore.sh Read More »
Start rescue 1.Check and Note backup start time # date 2. Insert Red Hat Enterprise Linux 4 AS(Update5) installation CD into CD-ROM 3. Reboot # shutdown -r now 4. After reboot, type “linux rescue” (start rescue) and press enter key in prompt on the screen below. boot:linux rescue 5. A screen to choose language is
Linux: OS / System Restore Read More »
#!/bin/sh ########################################## # # SYSTEM NAME : # SUBSYSTEM : # SHELL_NAME : BAK_***backup.sh # FUNCTION : backup OS image for **** # USAGE : SYSTEM Backup # CALLED BY : NONE # CALL TO : NONE # RETURNS : 0=OK, 1=NG # DESCRIPTION : backup OS image for **** # HISTORY : # 2009/04/10
Linux: BAK_***backup.sh Read More »
Start rescue 1.Check and Note backup start time # date 2. Insert Red Hat Enterprise Linux 4 AS(Update5) installation CD into CD-ROM 3. Reboot # shutdown -r now 4. After reboot, type “linux rescue” (start rescue) and press enter key in prompt on the screen below. boot:linux rescue 5. A screen to choose language is
Linux: System backup system Read More »
One method to move filesystems around, particularly if you are moving your root filesystem, is to use dump. Dump is a lower level backup program than tar, but this also makes dump quicker, because it doesn’t have all of the overhead. Another advantage is that depth of directories, symlinks, etc. aren’t a big deal. In
Linux: How to backup and restore file system Read More »
If you don’t want to take any chances with your data, it is recommended that you backup hard disk partition table. Last Friday I was discussing some issues with one of our customer and he pointed out me dd command. Backup MBR with dd command dd the old good command which now backup partition tables
Linux: How to backup hard disk partition table (MBR) Read More »
Red Hat Enterprise Linux 4.6 and 5.0 introduced /proc/sys/vm/drop_caches, which allows the pagecache and slabcache to be cleared on demand. To free the pagecache: # sync; echo 1 > /proc/sys/vm/drop_caches To free dentries and inodes: # sync; echo 2 > /proc/sys/vm/drop_caches To free pagecache, dentries and inodes: # sync; echo 3 > /proc/sys/vm/drop_caches It is
Linux: How to clear the cache from memory Read More »