Friday, September 4, 2009

Server commands in ubuntu

command remove a file
rm -f -r {file-name}

To remove all files & subdirectories from a directory (MS-DOS deltree like command), enter:
$ rm -rf mydir

install VLC plugin
sudo apt-get install vlc vlc-plugin-esd mozilla-plugin-vlc

rename a foldername
mv soucefolder destinationfolder

To move files into server

database backup restore
mysql -u root dbname -p < /var/www/dbname.dump

database backup
mysqldump -u root dbname -p > dbname.dump
from remote server
mysqldump -P 3306 -h 127.0.0.1 -u dbusername -p dbname>db.sql

ssh username@hostname
pwd : password

to move files into server

scp -r /var/www/foldername username@hostname:/var/www/



install flash player10 in ubuntu
remove old flash player
sudo apt-get remove flashplugin-nonfree

download the.deb file from
http://www.adobe.com/shockwave/download/alternates/#fp

Open Firefox and type following at url box:
about:plugins

to install the dependencies
sudo apt-get install -f

install flash player 10

reference links
http://www.cyberciti.biz/tips/linux-install-flash-player-10.html
http://www.ubuntugeek.com/how-to-install-adobe-flash-player-10-in-ubuntu-804-hardy-heron.html
http://www.adobe.com/shockwave/download/alternates/#fp
sudo dpkg -i install_flash_player_10_linux.deb

No comments:

Post a Comment