Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How to make display current info?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to make display current info?
Authored by: the_webmaestro on May 01, '06 12:49:46PM
I tried this:
    diskspace="du -k `pwd` | sort -n"
Doesn't work...

---
Father of Jeremy Logan

[ Reply to This | # ]

How to make display current info?
Authored by: the_webmaestro on May 01, '06 12:54:22PM
I meant to add, that I want to add something like this to my ~/.bashrc:
alias diskspace="du -k `pwd` | sort -n"

---
Father of Jeremy Logan

[ Reply to This | # ]

How to make display current info?
Authored by: regulus on May 02, '06 10:42:51AM

just use a . (ie. period) in place of pwd... and no quotes. FYI: in unix the . stands for the current directory and a .. stands for the parent directory.



[ Reply to This | # ]
How to make display current info?
Authored by: macgruder on May 03, '06 09:06:54PM

It's easier than that!

du -k | sort -n

du defaults to the present directory



[ Reply to This | # ]