Category: Linux

Checking disk space in Linux

To check disk space, you can use one the following commands: This command would list the amount of space used and available on each partition of the system. du commands…

vi editor

The VI editor is a screen-based editor. It is very powerful and has been around for more than a decade. Programmers are especially fond of the VI editor due to…

What user is apache running as?

You often need to know the username of Apache to assign proper permissions to certain files it will be accessing. To find out: You will probably see multiple users. Ignore…

Introduction to Linux

Linux is the most widely used variant of Unix. Linux is a very powerful operating system which has been around for more than 30 years. Initially, it was primarily been…

Linux: Compressing and Archiving

tar command The tar command is used to collate collections of files into one larger file. Creating archives Suppose we have directory xdir containing many files, we use the following…