Installing Sublime text in Linux

Installing Sublime text in Linux

Installing sublime text through command line is very easy. First you have to adds a PPA to your list of sources, so that Ubuntu knows to look for updates from that PPA as well as from the official Ubuntu sources. If you do not add this ppa then you will get less recent version of any application. Then, you need to the update the local database to know what package can be installed and from…

Read full Article Read More

Displaying Profile Using Java “super” and “this” Keywords

Displaying Profile Using Java “super” and “this” Keywords

Recently, I was learning about Java super and this Keyword. So, I wanted to share this knowledge with you with my small program that explained a lot about using them. public class CheckingSuper { public static void main(String args[]) { Student student = new Student(); student.printIt(); } } class Person { public String name = “Saugat Bhattarai”; public void printIt() { System.out.println(“Hello this is me ” + name); } } class Student extends Person {…

Read full Article Read More

How To Display Folder Only in Bash Using ls command?

How To Display Folder Only in Bash Using ls command?

Today I give you three ways to display folder only in bash using ls command. Here’s the demonstration: Step 1: Using echo saggi@saggi-A6200:~/Desktop$  echo */ Metasploit And Backtrack Videos/ password crack/ saggifoldear/ Untitled Folder Step 2: Using ls only. saggi@saggi-A6200:~/Desktop$   ls -d */ Metasploit And Backtrack Videos/ saggifoldear/ password crack/ Untitled Folder/ Step 3: Using ls and grep . saggi@saggi-A6200:~/Desktop$  ls -l | grep “^d” drwx—— 9 saggi saggi  4096 Mar 15 22:48 Metasploit…

Read full Article Read More

How to display file only in bash?

How to display file only in bash?

My last article was to display folder only using “ls” command, this time I want to share how to display files only in bash. Step 1: For this it is easy to use “find” command which is pre-installed in most of the Linux distro available in the market. Here is the command snippet:    :/> find .  -maxdepth 1 -type f using -maxdepth 1 ensure that your search remains only in the current directory (if…

Read full Article Read More

Record Your Terminal In a File

Record Your Terminal In a File

Today, I found one interesting command that could record everything in a file. Here’s the demonstration of “script” command. Step 1: Start script command and record every thing in “record” file. saggi@saggi-A6200:~/Desktop$ script -a record Script started, file is record Now, do whatever you do in command and see the beauty of “script” command. See demo below: saggi@saggi-A6200:~/Desktop$ uname -a Linux saggi-A6200 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux…

Read full Article Read More

How To Change Password in Linux From Command Line?

How To Change Password in Linux From Command Line?

Those who loves to use Linux system also loves to work on command line. Today, I came up with one new tips for Linux beginners . To change password from terminal is the easiest way than going through the GUI environment. Here the illustration of “passwd” command. Step 1: saggi@saggi-A6200:~$ sudo passwd [sudo] password for saggi: (Give root privilage to passwd command.) Step 2: saggi@saggi-A6200:~$ sudo passwd [sudo] password for saggi: Enter new UNIX password:…

Read full Article Read More

How To Know About Your Linux System?

How To Know About Your Linux System?

The best way to know your Linux system is by using Linux command “uname”. Here are few commands with its option. 1. uname -s Linux 2. uname -r 3.13.0-24-generic 46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 3. uname -v To display its kernel release To display its kernel release date. 4. uname -m x86_64 To display its machine hardware architecture. 5. uname -o GNU/Linux To display its Operating System. 6. uname -a Linux saggi-A6200…

Read full Article Read More

What’s New in Ubuntu 15.04 ?

What’s New in Ubuntu 15.04 ?

Linux geek are eagerly waiting for Ubuntu April release. This time Canonical group call this release as “Ubuntu 15.04 vivid vervet”. Here are its features: 1. Systemd replaces upstart for its startup and shutdown routine. 2. Ubuntu 15.04 is loaded with new default wallpapers. 3.Ubuntu 15.04 comes with 3.19 kernel version. (you can check your kernel version by “uname -a”). 4.  Updated apps GTK 3.14.8