Category Archives: Linux commands

Linux commands

gpasswd -d user group – Removes user from the group

zip -9 -r zipfile foldername – To zip a folder

service httpd restart – Restart Apache

mysqldump -h hostname -u username -p –databases databasename > datebase.sql – Export the database to the file database.sql

mysql -h hostname -u username -p databasename < database.sql - Import database wget http://mysite.com/zipfile.zip - to download a zip file to the folder unzip zipfilename - to unzip a zipped file