Saturday, June 4, 2022

Check for read only file system in Linux server!

 Hi,


We can check for read only file system in Linux in various ways.

//We can't create a file using touch file in that directory.

//We can't perform any execute operation in that directory or mountpoint.

Use following commands to check for read only mount point.

#mount

//It gives the status of every mount point, so that we can check manually.

// we can use script for touch command for every file system to check for read-only mode.

//create a sh file and run below script and get the result.

//

#!/bin/ksh

df | awk '{print $1}'> /tmp/mountpoint;

for i in $( cat /tmp/mountpoint );

do

cd $i;

pwd;

touch newfile6422;

done

//

Thanks


  

Find a file older than required days in Linux.

 Hi,


We can find any linux file using find commands as follow.

#find /dirname -mtime +dayNo -exec ls -lrth {} \;

Thanks

How to find any Linux file?

 Hi,

Every folder in the linux is a directory.

There are few commands to find a directory in linux filesystem like;

#locate filename

#find /dirName -name filename -exec ls -lrth {} \;

Thanks

Unleashing the Power of Docker and Docker Compose: Building Lightweight and Secure Containers

  Introduction In today's cloud-native world, containerization is the cornerstone of modern software development. Docker has revolutioni...