How to install a program on Ubuntu?
For example: master pdf editor or any other program
=>open terminal
type the following command
wget http://get.code-industry.net/public/master-pdf-editor-4.0.10_i386.deb
Then use dpkg tool to install it.
sudo dpkg -i master-pdf-editor-*.deb
sudo dpkg -i master-pdf-editor-*.deb
If there’s any dependency error, then simply run the command below to fix it.
sudo apt -f install
How to un-install a program on Ubuntu?
For example: master pdf editor 4 or any other program you wish to un-install
=> open terminal
type the following command
sudo apt-get remove master-pdf-editor [enter]
it will ask for password: [enter password]
Un-install starts
---------------------------------------------- OR----------------------------
=>open terminal
type the following command
sudo apt-get purge master-pdf-editor [enter]
it will ask for password: [enter password]
Un-install starts
=====================================
Listing in Ubuntu / Linux
List directory Documents/Books with relative path:
ls Documents/Books
List directory /home/user/Documents/Books with absolute path.
ls /home/user/Documents/Books
List root directory:
ls /
List parent directory:
ls ..
List user's home directory (e.g: /home/user):
ls ~
List with long format:
ls -l
Show hidden files:
ls -a
List with long format and show hidden files:
ls -la
Sort by date/time:
ls -t
Sort by file size:
ls -S
List all subdirectories:
ls *
Recursive directory tree list:
ls -R
List only text files with wildcard:
ls *.txt
List only pdf files with wildcard:
ls *.pdf
ls redirection to output file:
ls > out.txt
List directories only:
ls -d */
List files and directories with full path:
ls -d $PWD/*
JAVA UPDATE
First uninstall:
sudo apt-get purge openjdk-7-jre
Here you go to install the latest Java version 8 on Ubuntu, both JRE and JDK:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get -f upgrade
sudo apt-get autoremove
sudo apt-get install oracle-java8-installer
Remove selective files or program from text input file.
How to delete files listed in a file
Assuming that the list of files is in the file 1.txt, then do:
xargs rm -r <1.txt
The -r option causes recursion into any directories named in 1.txt.
If any files are read-only, use the -f option to force the deletion:
xargs rm -rf <1.txt
Comments
Post a Comment