Sunday, January 31, 2016

Clear Cache in Linux

Clear Cache in Linux


Step :1 

Clear PageCache Try This command.

mohan# sync; echo 1 > /proc/sys/vm/drop_caches

Step :2

Clear dentries and inodes Try This command.

mohan# sync; echo 2 > /proc/sys/vm/drop_caches

Step :3

Clear PageCache, dentries and inodes Try This command.

mohan# sync; echo 3 > /proc/sys/vm/drop_caches 


Step :4

Check Free Memory status Command

mohan# free -m


Linux Split and Join Manage Large Files

 Linux Split and Join Manage Large Files



Linux split and join commands are very helpful when you are manipulating large files (zip,gzip,tar..etc)


Step 1: Linux split file Commands

mohanlinux#split -b 4000m mohansundaram.tar.gz "mohansundaram-part"

Note:-
-b 4000m - 4GB Split Size
mohansundaram.tar.gz - Large file name
mohansundaram-part - split file name start with this name

Step 2:

mohanlinux#ls -ltr
-rw-rw-r-- 1 mohan sundaram 40000 Jan 31 21:35 mohansundaram-partxaa
-rw-rw-r-- 1 mohan sundaram 40000 Jan 31 21:35 mohansundaram-partxab
-rw-rw-r-- 1 mohan sundaram 40000 Jan 31 21:35 mohansundaram-partxac


Step 3:Linux  Join / Merge file Commands

mohanlinux#cat mohansundaram-partxa* > mohansundaram.tar.gz



Gitlab Automation Project Showcase

My GitLab Projects Showcase 🚀 Welcome to my portfolio of GitLab projects. Each repository reflects my journey as an engineer, focusing...