Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Friday, 4 September 2015

Difference between “apt-get remove” or “apt-get purge”

Should I use apt-get remove or apt-get purge


apt-get remove :
        remove is identical to install except that packages are removed
        instead of installed. Note that removing a package leaves its
        configuration files on the system. If a plus sign is appended to the
        package name (with no intervening space), the identified package
        will be installed instead of removed.

apt-get  purge
        purge is identical to remove except that packages are removed and
        purged (any configuration files are deleted too).

I would tend to use purge if you tend to not want to keep any configuration files around.



Related Posts :

Linux Tutorial for Beginners

Importance command for Java developer

How to Empty a file  

Wednesday, 26 August 2015

How to delete a non-empty directory in Terminal?

rm -rf myfolder

It deletes all files and folders contained in the myfolder directory.

Add sudo at the beginning of the command :

In case user doesn't have the permission to delete the folder:

sudo rm -rf myfolder

Otherwise, without sudo you will be returned permission denied. And it's a good practice to try not to use -f while deleting a directory:

sudo rm -r myfolder

Note: this is assuming you are already on the same level of the folder you want to delete in terminal, if not:

sudo rm -r /path/to/myfolder
FYI: you can use letters -f, -r, -v:

-f = to ignore non-existent files, never prompt
-r = to remove directories and their contents recursively
-v = to explain what is being done

Thursday, 23 April 2015

How to Install Java In Ubuntu

Installing default JRE/JDK

 Step 1:
  
       sudo apt-get update
Step 2:
      sudo apt-get install default-jre  
Step 3:
  sudo apt-get install default-jdk
   
Step 4:

 java -version


Installing OpenJDK 7

 Step 1:

sudo apt-get install openjdk-7-jre

Step 2:

sudo apt-get install openjdk-7-jdk

 

 

 


 

 

 

 

Tuesday, 7 April 2015

Linux Tutorial for Beginners



Importance command for Java developer

Basic commands
How to create file.
How to create folder.
how to change permissions.
how to use vi editor.
grep commands.
how to install java on ubuntu using command
command for tomcat
sudo command
pipelines
filter
wildcards.

 Software Instalation

Adobe reader
Mysql
ellipse