简体   繁体   中英

how to use find -ls command to list only files and not folders?

I've filled the space on my quota on a shared server, I'm not aware how this could have happen and I suppose it depends on something that has been stored in some hidden folder by one of my analyses (now I have to find where..). What is strange is that according to 'du -csh' the sum of the size of my folders is much lower than what it says 'quota'. I would need to list all files in the server with their size, ownership and directory. Running find -ls from the root folder makes the job, however it also lists all folders and subfolders

Is there anyway to only list files? I need to list also all files in hidden folders, many thanks

Answering on your main question:

ls -p | grep -v /

Looks like you have another problem. Please run

lsof | grep deleted

When you see some strings, just restart services which is locked this files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM