How can we see how most files or directories have been in the Linux directory?

Posted on May 11th, 2011 in Common Technique by admin

Linux has multiform opposite methods of last how most files and/or directories have been in the Linux directory. Below we have listed the couple of opposite methods of how we can arrangement the series of files and/or directories in Linux.

Use the tree command
The tree authority is an easy as good as discerning approach to not usually get the list of the files as good as directories, though to get the inform with how most files as good as directories there are. Keep in thoughts if tree is run though any one more options which it will not usually list the volume of files as good as directories in the stream directory, though all subdirectories as well.

If we instruct to list usually the essence of the stream directory, we can operate the next command.

tree -i -L 1

See the tree authority page for one more report about this authority as good as alternative accessible options.

Use relate in multiple with wc
Users can additionally fast see how most files and/or folders have been in the office by regulating the relate authority in multiple with the wc command. Below have been couple of opposite examples of how this can be done.

Get the equate of all files as good as directories in the stream directory

echo * | wc

Once the on top of authority has been typed we will get an outlay identical to the next example. In this e.g. the “10″ indicates the volume of directories as good as files in the stream directory.

1 10 104

Get the equate of usually the directories in the stream directory

echo */ | wc

Get the equate of only the files in the directory

Note: This e.g. is presumption all the files in the office have extensions. If the record does not have an prolongation it would not be counted.

echo *.* | wc


Article Source: レジストリクリーナー

Post a comment