Saturday, May 9, 2009

Ubuntu useful commands

To install .deb package.

sudo dpkg -i package_file.deb

When using vi editor in Awn gnome-terminal, ESC does not work, but Ctrl+[. It's hard to use vi in Awn, but it's still work.

-- searching virtualbox in the system

sudo aptitude search virtualbox

-- install virtual box

sudo apt-get virtualbox-ose

-- get new updates

sudo apt-get update

-- install updates

sudo apt-get upgrade

-- How to change files/folders ownership

sudo chown username /location_of_files_or_folders

-- If you want to change ownership of all containing files and folders recursively, use the -R option like this:

sudo chown -R username /location_of_files_or_folders

-- How to change files/folders group ownership

sudo chgrp groupname /location_of_files_or_folders

-- If you want to change group ownership of all containing files and folders recursively, use the -R option like this:

sudo chgrp -R username /location_of_files_or_folders

No comments:

Post a Comment