Tampilkan postingan dengan label unix. Tampilkan semua postingan
Tampilkan postingan dengan label unix. Tampilkan semua postingan

Minggu, 20 September 2009

Netcat, nc command

netcat
Netcat - also known as nc is considered the Swiss army knife of system administrators. In its most basic usage, netcat acts as a simple utility which reads and writes data across network connections, using TCP or UDP transport protocols. But this simple tool finds diverse uses for system administrators (Unix & Linux alike). Hence the name Swiss army knife.
Read more »

Kamis, 30 Agustus 2007

Awesome timeline of Unix, Linux and Mac OSX

A beautifully constructed timeline of Unix which includes modern day Unix descendants such as Solaris and Mac OSX as well as Linux. This timeline is not very much unlike the mind map of Linux I had created a long time back. But this timeline also provides the year when the Unix/Linux flavor was born. [Via: Zwahlen Design blog]

Fig: Unix - Linux timeline

Sabtu, 08 Juli 2006

Migrating and moving Unix filesystems

A couple of times in the past, I have seen one or two of the partitions on my system running Linux filling up at a rapid pace and during those times I have wondered how best to create more space. And I ended up using third party tools such as partition resizing programs to make more space. It is because of this hassle that many prefer using Logical Volumes to store data instead of directly storing it in the partitions. Using logical volumes, it is quite easy to shrink or grow a volume by adding or removing partitions to/from the volume using the tools available in all Linux distributions without any data loss what so ever and without sheding any tears. In previous posts on this blog, I had explained how to create and resize logical volumes in Linux.

Having said that, it is possible to migrate data from the filled up partition to other partitions on the same disk or an entirely different disk all together but there is a method to the madness. Martin Brown explains how to go about moving data (entire directory structure) from one partition to another. The reasons for doing so could be as diverse as freeing up much needed space in the partition to circumventing an impending fault in the device containing the data. And the process can be done in a system running in single user mode or a live and running system where you need to ensure that the files are available during the move.

And he lists out 8 steps to accomplish the task at hand. They are as follows:
  1. Choose the data to be copied
  2. Create a new partition
  3. Create a new file system on the partition
  4. Mount the partition on a temporary directory
  5. Copy the data to the temporary directory
  6. Rename the original directory
  7. Create the new mount point. And finally ...
  8. Mount the file system.