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 [...]
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 [...]
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.
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.
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 [...]
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.
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.
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?
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!
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.
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.
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 [...]
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