Cubo De Comandos Ubuntu
Cube
NETWORK
the terminal for humans beings
ubuntu
cheat-cube
PRIVILEGES
See man command for more options
See man command for more options
/etc/network/interfacesconfiguration (file)
ufw enable turn on the firewall
ufw disable turn off the firewall
ufw default allow allow all connections
ufw default deny drop all connections
ufw status current status and rulesufw allow/deny port allow/deny traffic on port
ufw deny from ip block ip adress
sudo command run command as root
gksudo command visual sudo dialog
sudo -s open a root shell
sudo -k forget sudopasswords
sudo visudo edit /etc/sudoers
passwd change your password
gksudo nautilus root file manager
chown user:group file change owner:group of file
chmod MODE file
change file permissionsMODE:
n1(user)n2(group)n3(others)
4(read)2(write)1(execute)
e.g.: 755 read-write-execute
for owner, read-execute for
group and others.
ifconfig show network information
iwconfig show wirelessinformation
sudo iwlist scan scan for wireless networks
ifup interface bring interface online
ifdown interface disable interface
sudo /etc/init.d/networking restart reset network
for manualconfigurations
global system settings
SYSTEM and DISPLAY
See man command for more options
Ctrl+Alt+Bksp restart X display if frozen
Ctrl+Alt+FN switch to tty N Ctrl+Alt+F7
Ctrl+Alt+F7 switchback to X display
Recovery Type the phrase “REISUB” while holding
down Alt and SysRq (PrintScrn) with about 1 second
between each letter
sudo dexconf reset xorg.conf
uname -r get kernel versionuname -a get all kernel information
start service start job service (Upstart)
stop service stop job service (Upstart)
/etc/init.d/service start start service (SysV)
/etc/init.d/service stop stopservice (SysV)
sudo /etc/init.d/gdm restart restart X and return
to login
*Use carefully, especially with the -f option
FILES AND DIRECTORIES
See man command for more options
/etc...
Regístrate para leer el documento completo.