hidden files
how to list hidden file only?
how to list 15 largest files/dir? |
You appear to just be dumping questions on to our site. They read as if they are homework or such like, and we are not here to do your work for you. You have not written proper posts, you have not said please / thank you for the help you have already received. Please don't continue to post like this, thanks.
|
Hidden files only I would use
Code:
ls -a | grep '^\.' |
Quote:
|
thanks dude......
|
ls -S would sort by file size including the hidden directories. Then (in the same command line) he has to pass the result to a command that allows him to filter only the last 15 lines.
So many other ways too .. What people are telling amar is that he must try out BEFORE POSTING bald questions. This way the audience knows how exactly to help him learn and not mug up. OK |
Quote:
Code:
ls -rS | tail -n 15 |
I didn't want to spoon feed him.
As a one time noob, and me being a senior citizen and all that, I would feel happy if he really tried out on his own and posted his doublts. OK |
I'm using this forum as a way for me to learn.. at one stage or another I had to learn how to use a pipe.. and I can tell you it wasn't through official documentation XD
|
Quote:
Use this instead Code:
ls -a | grep '^\.' Cheat sheet for regular expressions (The ^\.) http://www.robelle.com/smugbook/regexpr.html |
All times are GMT -5. The time now is 02:08 PM. |