From Mageia wiki
Jump to: navigation, search

pack / unpack file\directory

: tar -cvjf ./into_this_file.tar.bz2 ./from_this_file_or_dir  --- Creates 
: tar -xvjf ./this_archive_file.tar.bz2  --- eXtracts



harddiscs, flashdrives and cd\dvd

: blkid   --- show all devices with partitions (drives) in system ; mount  --- show drives enabled in system ; 
: mount /dev/sdX /mnt/dir  ---mounts device in directory ; umount /dev/sdX ---unmount drive



working with install\update packages

: drakrpm  --- is the X software center ;  drakrpm-update  --- X package updater
: urpmi --replacepkgs @package_name  --- reinstalls a package ; urpmi --auto-update  --- update packages in command line ; 
: urpmi @package ---installs a package



network interfaces

: ifconfig  --- shows all interfaces ; ifup ethX  ---enable interface ; ifdown ethX  ---disable interface



file management

: mc  ---terminal file manager ; ls --- list directory ; cd some_place ---change directory ; rm ---remove file\dir ; 
: cp ---copy file dir ; cd ..  ---to move out of this_dir



setting up dual screen for xrandr 1.4

: xrandr --output DVI-0 --primary --mode 1680x1050 --rate 60 --output HDMI-0 --mode 1280x1024 --pos 1680x0 --rate 60