Install Clamav:
sudo apt-get install clamav
Update Clamav:
sudo freshclam
Scan specific directory:
sudo clamscan -r directory_to_scan
Install Clamav:
sudo apt-get install clamav
Update Clamav:
sudo freshclam
Scan specific directory:
sudo clamscan -r directory_to_scan
Sometimes, after updating your Ubuntu Server or running sudo apt-get -f install
, you will have a message:
The link /vmlinuz.old is a damaged link
and you may need to re-run your boot loader[grub]
To solve this warning, run this command: sudo update-grub
My favorite universal text editor in Mac, Windows and Linux is Sublime Text.
Here’s how to install in Ubuntu:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
By default, Google Chrome is not installed in Linux.
Here’s how to install:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get -f install
It is always a good idea to change the default http://yourhost.com/phpmyadmin
to something like http://yourhost.com/yourdb
to hide it from easy access to others.
Just edit apache.conf:
sudo nano /etc/phpmyadmin/apache.conf
Change:Alias /phpmyadmin /usr/share/phpmyadmin
To:Alias /yourdb /usr/share/phpmyadmin
In some cases that you have hundreds of thousands or even millions of files in a directory that you want to delete, you will encounter this error:/bin/rm: Argument list too long.
The problem is when you type a command like rm -rf *.*
is replaced with the list of all files, and usually, the memory buffer allocated to shell is small to accommodate let’s say millions of file names.
To solve this issue, I usually use this simple command:
find . -type f -delete