Here’s a simple script I’m using to locate big directories (larger than 1GB):
du -h | grep "^ *[0-9][0-9.]*G"
The output looks like this:
Here’s a simple script I’m using to locate big directories (larger than 1GB):
du -h | grep "^ *[0-9][0-9.]*G"
The output looks like this:
Er zijn verschillende Linux distributies die allemaal een eigen manier hebben van het netwerk configureren.
Via de grafische schil zoals Gnome is het vrij eenvoudig. Maar voor servers moet het via tekstbestanden.
Aangegeven moet worden of de server een statisch ip heeft of via DHCP een IP adres krijgt toe gewezen.
Het IP adres, subnet mask, DNS servers etc.
Hieronder staat beschreven hoe het per disto moet.
If you want to work with zip files in Ubuntu command line interface, you will need these commands: zip and unzip.
To install zip if you don’t already have it, do this
sudo apt-get install zip
The simplest way to create a zip file (archive) is
zip myzipfile.zip file1 file2 file3 …
I use a couple of different methods on a day to day basis to figure out what process has opened a port on my Linux machines. The first one works well in Linux, but doesn’t work in most Solaris versions I’ve sat down at
netstat -plate
This one is a bit more cross platform and uses lsof
lsof -Pani
On unix systems we often talk about the server’s load. The load can be found by using the w command or with various other tools. The important thing to know is that load is made up of 3 numbers and will look similar to this
load average: 0.21, 0.24, 0.20
To find your Debian and Ubuntu install version:
Debian, type “cat /etc/debian_version”
Ubuntu, type “cat /etc/issue”
To find the Kernel version:
type, “uname -a” (prints all kernel information)
type, “uname -r” (prints your kernel release)
scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.