- Install Clamav
sudo apt-get install clamav
- Update Clamav
- Scan specific directory
sudo clamscan -r directory_to_scan
Sometimes, after updating my Ubuntu Server or running
sudo apt-get -f install, I 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:
By default, Google Chrome is not installed in Linux. Here's how to install:
- Download the latest current stable version of Google Chrome (64 bit)
sudo dpkg -i google-chrome-stable_current_amd64.deb
In case of any error in the installation, run also this command:
sudo apt-get -f install
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
This is how to find files in Linux assuming you know some little detail about it.
To find "myfile.txt" in the current directory and any subdirectory under the current one.
find -name 'myfile.txt'
To find for any file named "myfile.txt" on the root and all subdirectories from the root.
find / -name 'myfile.txt'
To find for any file beginning with "file" in the current directory and any subdirectory.
find -name 'file*'
To find for any file that is larger then 1000k.
find -name '*' -size +1000k
- Create a text file
- Write your cron job on the first line, it should read something like this:
0 * * * * lynx http://www.yourdomain.com/cron.php
0 * * * * lynx http://www.yourdomain.com/?module=scheduler
Select one, as what you need; and line break is only at the end of the cron job.
Creating a TAR archive:
tar -cf archive.tar DirectoryNeedToArchive/
Listing the contents of TAR archive:
tar -tf archive.tar
Extracting files from TAR archive:
tar -xf archive.tar
Compressing the TAR archive:
Decompressing and extracting tar/gzipped archive:
tar -xzvf archive.tar.gz