Posts Tagged ‘linux’

Why Linux doesn’t come with a defrag utility

tux_file_linux
A while back I tried to explain to someone why I am never really concerned about the need to defrag my linux systems, well at least not nearly as much as any windows system. This site is one of the simplest explanations I have seen so far. Why doesn’t Linux need defragmenting?

Format and Partition a Second Hard Drive in Linux – (ext3)

tux_file_linux
For the purpose of this example, a second hard drive was installed into a Linux system where the drive is recognized as /dev/hdb. Only one partition will be made in the following example./dev/hdb1. fdisk First, you will need to run the fdisk command in order to partition the disk. For this example, I only want to create one ext3 partition. Here is an example session: [root@linux2 etc]# fdisk /dev/hdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building...

List Physical Memory in ESX (Linux)

term_icon
To do this use the “dmidecode” command. This command has many more functions which you can read more  HERE . But for the task at hand… listing the physical memory issue the following command: dmidecode -t memory

Linux Directory Structure (Visual FHS)

This structure could vary from distro to distro but this is a very generic linux directory structure taken from Ubuntu.The directory structure in Linux can be confusing for new users of Linux and even some experienced users tend to forget what is what from time to time. Most distributions have the same general structure of the base directory system. Ubuntu File/Folder structure

Mount ISO as cdrom in Linux

To mount an ISO: mount -o loop /path_to_iso/filename.iso /mnt/cdrom To unmount the ISO when done: umount /mnt/cdrom

w – Linux Command (like “who” but with more info)

The w command shows who is logged in to the system and what they are doing. A login, logging in or logging on is the entering of identifier information into a system by a user in order to access that system (e.g., a computer or a website). It generally requires the user to enter two pieces of information, first a user name and then a password. The basic syntax of w is: w [options] [username1, username2, . . .] The square brackets indicated that the enclosed items are optional. When used without...

vi – Linux/unix editor

This is one the most important tools to know and could either cause alot of headaches and save you from them. This is most common text editor in Linux and UNIX. People tend to love it or hate it. Either way, it’s nearly always there in any *nix implementation and just by memorising a few commands you can be up and running with it. Just remember if you get stuck type :q! to exit without saving. To open a file in vi type: vi filename The first thing that throws you is that to enter text into...

su / sudo

term_icon
su // The command “su” stands for “switch user”. And it does just that, it switches users. When it used without parameters, we are specifying to switch to the user root. However, we can use the su command to switch shell to any user account that we know the password of. In the first example, we are logged in as the user Bob and we are switching to user Pat. [Bob@host Bob]$ su Pat Password: [ali@esx1host kevin] In this second example, we are switching from being logged...
Twitter Delicious Facebook Digg Stumbleupon Favorites More
329 queries in 3.780 seconds.