Postscan med nmap
# nmap -v -sT -p 1-65535 localhost
# nmap -v -sT 192.168.0.0/24
Tags : Linux
Created 30/03-2017 by Michael Bornholdt Nielsen
The Complete Guide to “useradd” Command in Linux
Created 17/02-2017 by Michael Bornholdt Nielsen
How to override/update a symlink?
. Creation -> ln -s {path/to/file-name} {link-name} Update -> ln -sfn {path/to/file-name} {link-name} Deletion -> rm {link-name}
Kilde : http://serverfault.com/questions/389997/how-to-override-update-a-symlink#390024
Created 15/02-2017 by Michael Bornholdt Nielsen
Color in Bash
Text Colors
Text color output is not defined in ANSI C/C++. Instead the creators of the language left that to be operating system dependent. In Linux, to change text color you must issue what are known as terminal commands. To do this you just change your output statement to contain a terminal command.
For example, see the below program.
#include <stdio.h>
int main()
{
printf("Hello, world! ");
}
To print "Hello, world.!" in red I would change the printf statement to read:
printf("