Você está na página 1de 1

cd directory go to directory

cd .. go to previous directory
ls list files in work directory
ls -a list all files (including hidden files)
cp file dest copy file to dest
cp -r directory dest copy directory to dest
mv source dest move/rename file/directory to dest
mkdir new-directory create new directory
rm file remove file*
rm -r folder remove folder recursively*
ln -s file link create symbolic link of file
mount -t type device mount-point mount device
mount -o loop iso mount-point mount iso image
/home/user your working directory
/etc global system settings
See man command for more options

FILES AND DIRECTORIES


*Use carefully, especially with the -f option

ifconfig show network information sudo command run command as root uname -r get kernel version aptitude update refresh available updates
iwconfig show wireless information gksudo command visual sudo dialog uname -a get all kernel information aptitude install pkg install pkg
sudo iwlist scan scan for wireless networks sudo -s open a root shell start service start job service (Upstart) aptitude safe-upgrade upgrade all packages
ifup interface bring interface online sudo -k forget sudo passwords stop service stop job service (Upstart) aptitude full-upgrade upgrade Ubuntu version
ifdown interface disable interface sudo visudo edit /etc/sudoers /etc/init.d/service start start service (SysV) aptitude search pattern search package
sudo /etc/init.d/networking restart reset network passwd change your password /etc/init.d/service stop stop service (SysV) aptitude show pkg show information about package
for manual configurations gksudo nautilus root file manager sudo /etc/init.d/gdm restart restart X and return aptitude remove pkg uninstall pkg
/etc/network/interfaces configuration (file) chown user:group file change owner:group of file to login aptitude purge pkg uninstall pkg and its settings
ufw enable turn on the firewall chmod MODE file change file permissions Ctrl+Alt+Bksp restart X display if frozen aptitude aptitude interface (ncurses)
ufw disable turn off the firewall MODE: Ctrl+Alt+FN switch to tty N Ctrl+Alt+F7 aptitude hold pkg not update this package
ufw default allow allow all connections n1(user)n2(group)n3(others)
Ctrl+Alt+F7 switch back to X display dpkg -i pkg.deb install file pkg.deb
4(read)2(write)1(execute)
ufw default deny drop all connections Recovery Type the phrase “REISUB” while holding /etc/apt/sources.list APT repository list (file)
e.g.: 755 read-write-execute
ufw status current status and rules for owner, read-execute for down Alt and SysRq (PrintScrn) with about 1 second ubuntu-restricted-extras non-free (pkg)
ufw allow/deny port allow/deny traffic on port group and others. between each letter build-essential used to compile programs (pkg)
ufw deny from ip block ip adress sudo dexconf reset xorg.conf
See man command for more options See man command for more options See man command for more options See man command for more options

NETWORK PRIVILEGES SYSTEM and DISPLAY PACKAGE MANAGEMENT*


*use all commands with sudo

ubuntu
cheat-cube
the terminal for humans beings

Cube
Cheat

Você também pode gostar