noraj (Alexandre ZANNI) - Cybersecurity engineer & Pentester

How to change of terminal in command-line with Linux

Changing of TTY (TeleTYpewriter), text console or text terminal without keyboard shortcut may be useful for remote administration or virtualization. So to change of TTY in CLI (Command-Line Interface)

Install Oh-my-zsh on openSUSE

Install zsh zypper in zsh and git zypper in git. Then install oh-my-zsh wget --no-check-certificate http://install.ohmyz.sh -O - | sh. Then define zsh as your default shell: chsh -s /bin/zsh.

Learn Linux: Help

What is the man? Let's see what it says itself: $ man -f man man (1) - an interface to the on-line reference manuals man (7) - macros to format man pages man (1p)

How to know the graphic controller under Linux

To know your 3D graphic(s) controller(s) working (GPU or/and chipset) with your VGA output you can run the following command : /sbin/lspci | egrep 'VGA|3D' Example : /sbin/lspci | egrep 'V

Know status and health battery in command-line

To see your battery infos you can use acpi if you have it or directly see system files. Upower command# In both case you can use upower command to get some usefull infos: upower -i /org/freedesktop/UP

DISPLAYMANAGER and WINDOWSMANAGER

Change of Display Manager# Pass root sudo -i Then open /etc/sysconfig/displaymanager with a text editor. vim /etc/sysconfig/displaymanager Display Manager can be changed at line DISPLAYMANAGER="X

Variables type size and formaters in C

Variables# Type Size Min Max signed char 8 bits -128 +127 unsigned char 8 bits 0 +255 short 16 bits -32,768 +32,767 unsigned short 16 bits 0 +65,535 int 16 bits -32,768 +32,767 unsign