Submit your breaking news stories and original articles to us by contacting us
In this article, I will show how to check which directories and files are the largest. We will use 3 linux commands…..du , ls and sort.
First lets do an example from your /home directory. Lets find out which directory is biggest
# du -Sm | sort -n
after executing this command you will see directory listing with sizes like:
2 ./oshrt/src/cs
3 ./oshrt/sbin
4 ./ekg/src
5 ./oshrt/src/oshrtd
10 .
In the first column you will see the directory size in megabytes, second column is directory name. The last entry only has a “.”. This represents the total size of all the files in all the directories where you executed the command. As you see the biggest dir is ./oshrt/src/oshrtd, lets find out which files in this directory are biggest.
# ls -lR ./oshrt/src/oshrtd/ | sort +4n
Output shouldl look something like this:
-rw-r–r– 1 user user 78068 Jul 24 15:12 server.o
-rw-r–r– 1 user user 85520 Jan 10 2002 command.c.orig
-rw-r–r– 1 user user 86122 Jan 21 2002 command.c
-rw-r–r– 1 user user 111344 Jul 24 15:12 connection.o
-rw-r–r– 1 user user 138708 Jul 24 15:12 oshrt.o
-rw-r–r– 1 user user 143531 Jan 21 2002 oshrt.c
The sort command sorts output from small to big file sizes, so the biggest file will be at the end of listing. In this case, the biggest file is oshrt.c. If you’re having space problems, you may want to try these commands on /var/log, because it is the most space eating directory :)
Universal Pictures and Twentieth Century Fox have annouced that Peter Jackson and Fran Walsh will act as executive producers for Halo The Movie. Halo the movie will be based on the famous Xbox game of course. The best thing is that Halo movie will be produced in Wellington, New Zeland on servers running open-source Linux operating system.
Weta Digital uses more than 1k dual-processor IBM Blade servers running Fedora Linux from Red Hat.
Funny isn’t it?
Syslog is a log daemon on linux systems, it logs all activities like kernel messages, connection messages, mail messages etc.. Syslog default configuration writes all logs from daemons to (in most cases) /var/log/ . If you go to that directory in your linux system you will see couple of log files like messages, secure etc…
Now lets try to make it more handy :)
open /etc/syslog.conf file with your favorite text editor , and put the following line at the end:
# Log everything on tty12
*.* /dev/tty12
* Remember to use TABs not spaces between *.* and /dev/tty12 , syslog doesynt like spaces *
Save it, and then restart syslog using command:
killall -HUP syslogd
From now on, syslog writes to /var/log files and shows everything on tty12 (12-th console window).
If you’re running a graphical console like KDE,GNOME etc.. try to push CTRL+ALT+F12 to see it.
This will make syslog more handy, and now you may always see whats going on in your system :)
Without making any big waves about it, Novell has released the latest version of its flagship linux distribution SuSe 10. This is the first SuSe linux released under the Novell OpenSuSe community model which was launched in early August. SuSe linux is designed to be cutting-edge for all the enthusiasts out there, while providing easy to use interfaces (KDE and GNOME) for less experienced users.
The new version of SuSe contains over 1500 open-source linux applications which can be optionally installed (including latest FireFox and Opera web browsers and OpenOffice.org 2.0 Release candidate). Retail version suggested price is $59.
One week before final release of Ubuntu 5.10 Linux distribution, the Ubuntu team released latest Release Candidate (RC). Ubuntu 5.10RC includes the installation CDs, live CDs, and DVDs for three architectures. To download Ubuntu 5.10RC go to:
US: http://us.releases.ubuntu.com/releases/5.10/
EU: http://se.releases.ubuntu.com/5.10/
UK: http://releases.ubuntu.com/5.10/
and the rest: http://releases.ubuntu.com/5.10/
The final version of Ubuntu 5.10 will be available on October 13th.
There are plenty of tools with which you can check your disk space. However, Linux already has a built in function to show you just what you need to know. Open a terminal window or push (ctrl+alt+F1 to go to console) and type:
# df
You will see something like this(your output may be different, depending on how many partitions/harddrives/cdroms you have mounted):
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 78012484 17606992 56442660 24% /
/dev/hda1 101086 16400 79467 18% /boot
none 516808 0 516808 0% /dev/shm
/tmp 247919 7339 227780 4% /tmp
This one looks a bit unreadable, because size is represented in 1K-blocks, lets try to make it clean and more readable:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 75G 17G 54G 24% /
/dev/hda1 99M 17M 78M 18% /boot
none 505M 0 505M 0% /dev/shm
/tmp 243M 7.2M 223M 4% /tmp
Now the size is represented by megabytes and gigabytes … better? :) Now let’s create an executable file to show the disk sizes:
#!/bin/sh
DISC=$1
PARTITION=`df -h |grep $DISC |awk ‘{print $1}’`
SIZE=`df -h|grep $DISC|awk ‘{print $2}’`
USED=`df -h|grep $DISC|awk ‘{print $3}’`
FREE=`df -h|grep $DISC|awk ‘{print $4}’`echo “Partition: $PARTITION”
echo “Total size: $SIZE”
echo “Used space: $USED”
echo “Free space: $FREE”
Simply copy & paste this script into for example into a file named info.sh(create it with VI or JOE or even PICO). Next, you’ll need to make it executable. To do this, use the following command:
# chmod +x info.sh
Now, to execute the file, you need to run it, and pass it the correct argument. For our example, we are going to use hda3. So, to execute the file, type in the command as below….
# ./info.sh hda3
Tadaaa :)
This is my first post at ForeverGeek , so please be gentle :)
Surfing over the internet I found an interesting article on How to become a Hacker.
I will not comment on it … another way to tell people what to do to become a hacker
(should be Chacker instead of Hacker i think..hehe).
Erm, and of course someone should tell to the author what Cracker means…
Q: How can I get the password for someone else’s account?
A: This is cracking. Go away, idiot.
Yea, sure …. cracking …IMHO its still hacking
If you want to read this paper, click here

Netbooks and User Satisfaction: It’s All About Expectations
10 Cool Sony Walkman photos – celebrate Walkman’s 30th birthday