01/01/2012, 12:04
Adding and formatting new disk is possible in Linux.
Here the basics. You can use fdisk command.
Type fdisk – l

The other way to see presented disks in Linux system is to type ls /dev/sd*

Now you know which disks and partitions exist on the Linux system, and what you would like to format.
The tool mkfs is enough to progress simple formatting. For example to format your partition on disk is necessary
mkfs -t ext4 /dev/sda1
23/12/2011, 22:57
To see file properties, like in Windows, you can use command stat following by file or folder.
The following example shows properties of /root folder. Type stat /root

12/11/2011, 11:50
There are many ways to check Linux running processes. The “easy” ways: use small utilities like top or atop. The more powerful but more complex way to use internal linux ps command.
So to install either top or atop simply time this command. Be sure that these utilities already installed. For instance atop is usually not installed by default but supplies in most Linux distribution. In Debian for example.

Once it’s installed simply type atop

to use top command, simply type top.

If for some reason this is not enough for you, you can use ps command. ps -A will list you all processes currently running on your Linux system

Another utility which is my favorite is htop. Note that it should be also installed (similar way as atop)


09/11/2011, 11:32
It is necessary sometime to have the user which will be nobody in the system but still be able to run specific process or software on your Linux system.
Usually some packages like nginx can create such users, usually called nobody. And you can use this nobody for your purpose. But if you wish to have non privilege user user with specific name, use the simple command useradd.
For instance to create user userx run the following command: useradd -s /bin/false userx.

To newly created user try id command:

08/11/2011, 11:20
To check free space on Linux file system type: df- h
