Archive

Archive for May, 2010

Backslash with Mac keyboard

Shift – Alt – 7

Categories: Mac OS X

Edit hosts file

edit the hosts file with:

sudo nano /private/etc/hosts

reload hosts file:

dscacheutil -flushcache

Categories: Mac OS X

Name of graphic card

lspci | grep -i vga

Categories: Linux, Shell, Ubuntu

Assign a root password

To be able to log in as root directly, you must assign a root password. This can be done with:

sudo passwd root

Afterwards, you can use

su
Categories: Linux, Shell, Ubuntu

Delete trash of user and root

root:

sudo rm -r /root/.local/share/Trash/*

user:

sudo rm -r ~/.local/share/Trash/*

or

sudo rm -r /home/username/.local/share/Trash/*

Categories: Linux, Shell, Ubuntu

Moving files or folder to another folder

There are a few options to move files:

  • hold apple (cmd) key while draging the file to another folder
  • use the AppleScript droplet MoveTo, that lets you quickly move files between folders on your Mac. To use, drag Move To into the Finder toolbar. You can then drop your files on the application icon to move them.
  • with moveAddict you can cut or copy files and folders with the common shortcuts or some buttons in the finder toolbar and paste them where you want

Categories: Mac OS X