Storage and file management: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Marked this version for translation)
No edit summary
Line 36: Line 36:


<!--T:24-->
<!--T:24-->
While the command '''diskusage_report''' gives the space and inode usage per user on ''home'' and ''scratch'', it shows the total usage of the group on project. Since the files that belong to a given user could be all over the place under project, it is difficult to get a break down per user and per given project in case a user has access to more than one project. However, a user can get an estimation of his space and inode usage on the entire project file system by running the command:
While the command '''diskusage_report''' gives the space and inode usage per user on ''home'' and ''scratch'', it shows the total quota of the group on project. It includes all the files from each member of the group. Since the files that belong to a user could be all over the place under project, it is difficult to get a break down per user and per given project in case a user has access to more than one project. However, a user can get an estimation of his space and inode usage on the entire project file system by running the command:


<code>lfs quota -u $USER /project</code>
In addition to that, a user could estimates the number of files on a given directory using the command <code>lfs find</code>. For examplle:
<source lang="console">
lfs find <path to the directory> -type f | wc -l
</source>
<!--T:25-->
<!--T:25-->
<code>lfs quota -u $USER /project</code>


== Best practices == <!--T:9-->
== Best practices == <!--T:9-->
cc_staff
415

edits

Navigation menu