Linux.com

Home Linux Community Community Blogs

Community Blogs



Come scoprire quale cartella occupa troppo spazio

Come possiamo sapere come e' distribuito lo spazio sul disco del nostro "amato" server Windows??

Il SO di Redmond non ci viene incontro in questo ingrato compito e infatti non troviamo nessun comando che ci possa dare un'indicazione al volo di quale cartella occupa di piu'. Possiamo al piu' avere un riscontro su spazio occupato e spazio libero su una unita', ma come fare per avere una lista di cartelle in base alla loro occupazione?

Utilizzando una macchina Linux (in particolare Ubuntu 9.04 nei prossimi esempi)! Come prima cosa montiamo il disco del server in una directory del nostro client:

esoso@UBW099015D:~/backups$ sudo mount -t smbfs //SERVERNAME/c$/ source/ -o user=DOMAIN/USERNAME,uid=1000,gid=1000

A questo punto il disco C: del server e' montato nella cartella locale source/ e possiamo trattarla come tale.

Il comando che andremo ad usare e' du (man du): ci restituisce come output una lista di tutti i files e le directory contenute nella dir corrente

esoso@UBW099015D:~/backups/source$ du
132 ./WINDOWS/WinSxS/x86_Microsoft.Windows.Networking.RtcRes_6595b64144ccf1df_5.2.2.1830_en_920EB233
356 ./WINDOWS/WinSxS/x86_Microsoft.Windows.WinHTTP_6595b64144ccf1df_5.1.3790.1830_x-ww_74150EFB
356 ./WINDOWS/WinSxS/x86_Microsoft.Windows.WinHTTP_6595b64144ccf1df_5.1.3790.3262_x-ww_CE315432
21246 ./WINDOWS/WinSxS
4019928 ./WINDOWS
0 ./wmpub/wmiislog
0 ./wmpub
5443042 .

L'output di du e' molto semplice: due colonne, la prima indica lo spazio occupato (in Kb) e la seconda il percorso completo del file o della cartella analizzata.

Cosi' facendo pero' il comando sbrodola una lista interminabile e difficilmente analizzabile; possiamo pero' utilizzare un flag molto comodo --max-depth=1; a questo punto l'output diventera' un po piu' leggibile perche' il comando non discendera' nelle directory di livello superiore al valore del flag (1 in questo caso):

esoso@UBW099015D:~/backups/source$ du --max-depth=1
0 ./Config.Msi
428498 ./Documents and Settings
25087 ./IBMTOOLS
783484 ./Program Files
1 ./RECYCLER
20 ./System Volume Information
126980 ./TEMP
4019928 ./WINDOWS
0 ./wmpub
5444698 .

Ci siamo quasi!! Pero' sarebbe molto comodo avere un ordinamento dell'output basato sulla dimensione delle cartelle e non in base al loro nome; ci dobbiamo affidare al pipe e al comando sort per questo:

esoso@UBW099015D:~/backups/source$ du --max-depth=1 | sort -n -r
5448898 .
4019932 ./WINDOWS
783484 ./Program Files
428498 ./Documents and Settings
126980 ./TEMP
25087 ./IBMTOOLS
20 ./System Volume Information
1 ./RECYCLER
0 ./wmpub
0 ./Config.Msi

Sort rielabora l'output di du e ce lo presenta allo stesso modo pero' ordinato per dimensione (-n numeric sort) e dal piu invadente al meno esoso. Con una riga di comando possiamo quindi avere sotto controllo ogni singola cartella del server che dobbiamo ripulire, quindi sotto con le pulizie di Pasqua!!!!

 

My Cult Envy

 Sexy Tattoo Fangirl

 I have a serious cult envy.  This of course is referring to the largest cult on the entire technological landscape.  Apple cults.

How I envy they're pretty girls with tattoos. We seem to fall short with dudes so ugly I might as well be look in the mirror. I envy the Apple Blogs and rumor sites that 'leak' sensitive 'information' about the newest products and updates. Again, all we have is SVN, Alpha builds, and screen shot tours.

The big question is what can we do to have that healthy-unhealthy following? I've kicked around some ideas my self. I even thought about buying Linus or Shuttleworth a black turtleneck. I would send one to Stallman, but I don't feel like knitting one by hand.

Even YouTube, (my beloved YouTube!) is lacking in quality resemblance of Linux love. I can find hours upon hours of Apple tips, trick, and solutions that vary from quick and easy to incredibly complex. Damn near all you get on YouTube when you search Linux is a bunch of Compiz Cube videos. Man, the cube is cool though ain't it?

What can we do to improve the cult situation in Linux? More importantly where is the sexy tattooed Linux fangirls?

 

Xmind for SF nomination

Show your support...
 

Linux documentation catalog

I collected Linux documentation from LDP and other sources to single catalog
        - http://www.makelinux.net/reference
Your comments are welcome
.

Please help to promote the catalog.

 

My thoughts on Linux and Asia in 2009

My thoughts on Linux and Asia in 2009

First of all, I think it would be right to let people know where I'm from, so that they would understand the relevance of my views. I'm an Asian myself , from Singapore. And why I chose to write this article is for 2 major reasons. Most of the articles I read about Linux comes from North America and Europe. Hence I think it would be interesting for people to learn more about the Asian perspective on Linux, in an English written article, that is. The second reason is to beckon for a greater presence of Linux in Asia.
Let me "sell" you the idea of why I think Linux will do better in Asia. First of all, asia is big conglomerate of hugely different cultures and if you've ever been to asia, you would realise that in many places, Asia are on par and if not much better than the rest of world, in terms of choices. Take for example, in China and many other parts in Asia, you'll see people using different kinds of cellphones, of different makers. Many of brands are not available in Europe or America. And if you go into the features, there are more features per handphone than the you get in Europe and America. Many of these phones are clones or copies of Western brands, but with extra features and lower retail cost. So in terms of cellphone technology, I think Asia is leading. Sometimes my western friends see the phones we have here, they wonder why they are still carrying that black box which they call a phone. And this culture of having more choices, is the one of the fundamentals of the Linux/Gnu philosophy isn't it? Asians love choices, period.
The next thing is that one of the major reasons I think why Linux is crawling throught the computing market share, is mainly due to the fact that it is mostly advertised or encouraged in the western world. What these Linux companies or distros don't understand is, there is actually a bigger market in Asia. And it will even bigger, as computer literacy sky-rockets in the near future in Asia. The reason why Microsoft dominates so well in the western world is that, the western world grew up in the world of Microsoft. So most western people, are used to using Windows, and thus it became the de facto OS in school and work. Asia is different. Many asian countries are still developing their literacy level, hence this is the best time to enter the market. Linux being free and open-source, it makes it easy to propagate itself in Asia. And if Asian students learn Linux in schools, it would easily be their OS of choice when they grow up. Hence I don't understand why the Linux world is neglecting this part of the world. The greater part of the world that is.
Lastly, Asia is more aggressive and competitive that most of the western world in my opinion. Hence Linux would do better here in a more competitive way. If you look at the top universities of the world and look at the top 20 % of the cohort of students, you'll find many asians there. This is not a show of elitism or racism, but it's just an example to illlustrate the fact that there are many bright young minds in Asia, which could contribute well to the world of Linux..
But to really succeed in Asia, I think Linux community have to work harder to develop softwares or applications that are supportive of unicode and other Asian language. There are still many apps that are written purely for the English-speaking world and I still find many files with Chinese filenames that are unable to be displayed in multimedia and file managers alike. My personal favorite file manager (midnight commander) wouldn't display Chinese fonts is an example.
So here I beckon to all the major Linux companies and distros, if you haven't had a branch/wing/counterpart here in Asia, you don't know what you have been missing out.=) Singapore's a good place to start, at least we are English-speaking and we position ourselves between the East and the West since the dawn of our humble history.

 

Who has better virtualization, HP-UX, Solaris, or AIX?

Why is virtualization so important? The short answer is that virtualization enables businesses to lower their technology Total Cost of Ownership (TCO), while increasing their Return on Investment (ROI). What do the top UNIX vendors have to offer with respect to virtualization? Find out what virtualization is more scalable. Here's a look at HP's Virtual Server Environment (VSE), Sun's xVM, and IBM's PowerVM.

 

 

It's all about numbers ...

im good at using permission using characters like below, u know u+rwx or g+x and things like below which I copied from some howto website:

 Permissions

u - User who owns the file.
g - Group that owns the file.
o - Other.
a - All.
r - Read the file.
w - Write or edit the file.
x - Execute or run the file as a program.

BUT... :(

Read more... Comment (0)
 

Hello, I'm new here

Hello,

I'm new here.

Let me introduce myself, i am jmjlinux586,

and I use Mandriva Linux.

To see more about me see my http://jmjlinux.110mb.com/about.html

about page.

I would also like to say that I have a web site:Helpful Linux Links and

Piano links  http://jmjlinux.110mb.com

The purpose of Helpful Linux Links is to help people learn about Linux. Here you will find links about Linux Distributions, Installing Linux, Live cd's Linux Applications or Programs, Linux Forums, Linux articles and other Linux topics you want to learn about.

Yes I also have Piano Links on there.

These are the two things I spend my time on.

 

The other reason for this post is to say that

I am glad to see this site is back again, and

that I have posted a link to this site on my

site.

Thanks

 

 

 

Grubuntu Linux Blog

Welcome to the Grubuntu Linux Blog. Our group releases custom Linux expansions and software to the general public. If you are someone that is interested in getting your own custom Linux software or expansion, then feel free to email us at: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
 

Hello, my name is Eric

Hi, I have been using Linux since 2003.  I have taken a couple of Linux administrators courses at a local community college.  I learned from Jeremy Anderson,,,,I consider him to be the Guru of Linux. 

 

Since taking the courses, I have spent the majority of my experiences at figuring out how to use Linux on Laptops, realizing that if Linux is to become mainstream, it needs to move past the traditional desktop, but to laptop.  Which leads to issues in the proprietary drivers, and configuring wireless.  Which I have gotten fairly proficient with.  I am now finding out an issue with some of the video cards...as I have duplicate laptops...Dell 1501 Inspiron AMD 1800 and a 1900  Dual-Core laptops...one will install Fedora, Open Suse, Centos, and Mandriva...and one won't...it will only take Centos with out any major issues.

 

I have been building desktops, and I have build a laptop...really I rebuilt a laptop because of how everything is limited with laptops....

 

Ubuntu Developer Network

Since I have never written about this here before, here's a little background.  The Ubuntu Developer Network is an idea that I have been promoting for the past several weeks.  I came up with the idea while trying to package an application for Ubuntu.  Much of the documentation was available, but it was scattered across Ubuntu's vast wiki system.  Many of the pages, while well written, led me in constant loops where I was left to figure out how to do many things.  While it was a good learning experience, I thought it could certainly be better.  I also felt just a MOTU section in the wiki was to narrow a focus to be much use to a first-time programmer.  This sparked an idea for a developer network, a place that could help people not only package an application for Ubuntu, but write software for and on Ubuntu.  

I began to look around the many different developer networks. and found that they were quite helpful -- far more in fact than the loose wiki page system used by the Ubuntu community.   MSDN (I know, don't even say it...), SDN, and others all had different tracks, all built for either different skill levels or different topics.  As a starting programmer, I went to the Visual Basic guides at MSDN.  Within about 5 minutes of installing the software, I had already made a simple web browser.  Really, it should be just as easy to learn how to use the tools and learn the programming languages.  The great thing about a UDN is the fact that it does not have to be hosted on the Ubuntu site, and many things can be linked to tutorials, application info on the wiki, etc.

For an example of how UDN would work, let's say I wanted to do Python programming on Ubuntu.  I would go to "udn.ubuntu.com" or something similar and see a main page, with the Ubuntu Developer News, latest video from the Ubuntu Developer channel on YouTube, and see links for different tracks.  I would pick the one for Python programming, which would take me to a page with different options:  Beginning Python Programming, Packaging Python Applications for Ubuntu, etc. I would click on the "Beginning Python Programming" link.  A page would load listing prerequisites (e.g. to complete this track you must install x and use Python 2.6, etc.), with links to additional resources that can be used (such as the book "Learning Python" by O'REILLY publishing).  The tutorial would then continue by showing how to use different tools for Python programming on Ubuntu.  Similarly, "Learning to Package Python Applications on Ubuntu" would lead me to prerequisites for building a package, then to guides on how to do it.  

That's the Ubuntu Developer Network in a nutshell.  I plan to write a formal plan and present the blueprint on Launchpad soon.  If you happen to like the plan, vote for it on the Ubuntu Brainstorm site!

 
Page 116 of 139

Upcoming Linux Foundation Courses

  1. LFD331 Developing Linux Device Drivers
    25 Aug » 29 Aug - Virtual
    Details
  2. LFS422 High Availability Linux Architecture
    08 Sep » 11 Sep - Raleigh, NC
    Details
  3. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board