![]() Sometimes when you have not managed your disk space in a long time, there is much clutter, and it is hard to find what is taking up a lot of disk space. The next command is handy in situations where you need to clean your hosting account. Check the size of files with specific extensions Of course, you can modify it to set whichever permissions you need, however, we at HostArmada advise our clients to keep their web application files with these permissions. It is going to do this recursively and is going to affect ALL files and ALL folders inside. This command is going to change the file permissions to 644 and the folder permissions to 755 when executed in a specific folder. type d -print0 | xargs -0 chmod 0755 & find. Now that you know the primary use of this tool, we are going to provide you with a few examples of commands that are going to be very useful in certain situations. ![]() If you want to look only for directories, please replace the " -type f" with " -type d". Please refer to the below example: user]# find. If you are interested in finding only the FILES that have the name " demo1", find has a flag " -type f" that can enable you to search for files only. It is also going to proceed recursively inside any other folder in there looking for everything that has the name " demo1". " which means " within the current directory". The above example is going to look for files/folders located in the dot location, ". public_html/find_tutorial/find_tutorials/demo1 Here is what happens when executed: user]# find. Using this command, we are going to look for the " demo1" within the home directory of the user. The most basic example is to find out if a file exists under a specific name. From there, it's up to your imagination and creativity how you adjust it for a specific purpose. In this article, we cannot cover all of the uses for this command, however, we are going to give you an idea of how it works and provide you with a few useful examples you can use. Its applications are practically unlimited as you can search for files and execute various commands on them, depending on what you need to do. The built-in Linux " find" command is perhaps the most often used tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |