IT-Tips

How to Clear the screen on logout – Linux

If you have an account on a server and using this from a public place, like an internet cafe or an university you probably want to make sure that nobody is able to read the leftovers from your session. To archieve this, add the command “clear” to the end of “~/.bash_logout“. To make sure there [...]

How to Speed Your File System Up By 40% – Linux

Every time a file is read from your Linux ext3 partition it writes back a attribute to the file detailing the last access time. There are very few programs that actually use this to operate and it slows everything down. Disabling atime and diratime on your Linux ext3 file systems can improve disk performance up [...]

How to do a Simple Network Performance Test – Linux

FTP on Linux and other Unix systems allows you to pass shell commands to the ftp client by using the pipe symbol ‘|’ as the first character of the file name. With this feature you can send a very large file to a remote host using /dev/zero as input and /dev/null as output.

How to see Memory Fragmentation in Linux Systems

When a Linux system has been running for a while memory fragmentation can increase which depends heavily on the nature of the applications that are running on it. The more processes allocate and free memory, the quicker memory becomes fragmented. And the kernel may not always be able to defragment enough memory for a requested [...]

How to Use command – ‘make’ – for backups

Usualy make from sys-devel/make is known as a tool for compiling applications. But it could also be used to provide often used commands so that they can be accessed easily.

How to Recover the root password of Linux Box

This tip shows you a couple of ways to reset the root password if you’ve forgotten it. The easiest way is of course to boot off a LiveCD, chroot into the primary hard disk as described in the Gentoo Install Guide and use passwd. If you don’t have a LiveCD, or the system doesn’t have [...]

How to convert files from Windows format to UNIX format

This tip shows you how to convert files from Windows format to UNIX format and vice versa. This can be handy if you’ve ever opened a file that was created in Windows and found your screen full of of ^M characters at the end of every line.

How to improve DNS lookups by using multiple nameservers

This tip shows you how to improve DNS lookups by using multiple nameservers. This is useful if you’ve ever had your primary DNS server become unreachable for any reason.

How to Use the file command

The file command is provided by the package sys-apps/file, so if you don’t already have it installed, you’ll need to type emerge file. Chances are you’ve already got it on your system though. To use file simply type file filename and you’ll see information about the filename you passed in. Simple right?

How to kill stubborn processes in Linux – Tips

This tip shows you some interesting ways to kill stubborn processes. Never let it be said that you can’t kill a process again! The first way is the old boring way that most people probably use. Use the command ps aux, look through the process list until you find the PID you want and issue the kill command. How tedious!

How to Prevent System Reboot with Ctrl-Alt-Del – Linux

The “Three-Finger-Salute” or, the key combination Ctrl+Alt+Del is typically mapped to the command /sbin/shutdown -r now. In other words, it reboots your system. Sometimes this may be unwanted behavior, so this tip shows you how to disable, or remap that key combination.

How to find Remote Network File Systems

Network File System (NFS) is a network file system protocol originally developed by Sun Microsystems in 1983, allowing a user on a client computer to access files over a network as easily as if the network devices were attached to its local disks. NFS, like many other protocols, builds on the Open Network Computing Remote Procedure Call (ONC RPC) system.

How to Identify Your Intel Chipset on Windows by Device Manager

Identifying the Intel® chipset components located in your computer can usually be done by looking at the chipset markings on the motherboard. Chipsets are comprised of multiple components and the following link shows the combinations that make up the various chipsets.

How to Determine Linux ethernet interface speed and duplex

Determine the autonegotiated ethernet connection speed and duplex using the mii-tool command Running the following command as superuser with no options will generate basic information about all of the ethernet interfaces on the computer: mii-tool The resulting output will look something like: eth0: negotiated 100baseTx-FD, link ok This output shows one interface (eth0) which was [...]

How to Make Linux ignore a ping

Sometimes it can be useful to hide a Linux machine a bit. To turn answers to icmp_echos off, as root type: echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all and to turn it on again type: echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all