Q. I want to play mkv format file in my Ubuntu machine, but I am unable to do Totem player is asking me some plugins to install. I want to use VLC player as it plays many formats, how can I do that? VLC Player is an excellent player due to its support of many formats and simplicity.(…)
Basics
PS1 prompt explained for Linux/Unix
As said in our previous post(Linux booting process) about our up coming posts on Linux prompts. This is first in the series which will give you detail information about PS1 prompt. What is PS1 prompt? PS1 (Prompt String 1) is one of the prompts available in Linux/Unix. When you try to login to any machine, you have(…)
How to Record your Terminal session in Linux?
Some times its require to record your terminal sessions for future use or some sort of educational purpose. Recording terminal session can be achieved by installing script command(Most of the distributions install this application by default). If the command is not there try to install the package which provides it. Install script command in Linux(Redhat/Fedora/CentOS) Operating(…)
Does rm, cp, mv etc work alphabetically?
Q. Is rm -rf * removes the files in alphabetically? Simple answer is yes, the files/folders are removed in alphabetic sequence. I ran strace command to support my answer. I have 4 files in my dir as shown below [email protected]:~/scripts/temp/temp$ ls -lrt total 0 -rw-rw-r– 1 surendra surendra 0 Oct 10 23:55 c.txt -rw-rw-r– 1(…)
25+ Awesome Linux/Unix command chaining examples
Command chaining is a concept to execute two or more commands in one shot to increase .. productivity Reduce system resource usage(In some cases ) Short and sweet codes . In this post we will see how to use different command chaining operators available for us in an easy way. Command chaining operators & –Sends(…)
23 Linux cd command examples
This is a basic post to show you what we can do with cd command to reduce your time spending at terminal by using alias, tips and some shortcuts. cd(Change Directory) is a basic command which is used to change your working directory from one to other. Here are some productivity tips and some less(…)
How to set path in Linux and Unix
What is a path? A path is a unique location to a file or a folder in a file system of an OS. A path to a file is a combination of / and alpha-numeric characters. Why to set PATH variable? PATH variable is system variable or environment variable used to store binaries/commands location/folder so(…)
Absloute path vs relative path in Linux/Unix
One of this blog follower asked us that what’s the difference between absolute and relative path? To understand this we have to know what is a path in Linux. What is a path? A path is a unique location to a file or a folder in a file system of an OS. A path to(…)
How to find command location in Linux?
How to find command location in Linux and Unix This is a small how to on finding your command location. Some times its required to find command location to use it as path is not set properly to /bin or /sbin or some other folder. And some times we install packages through scripts where the(…)
Convert Binary,HEX, Oct to decimal in Linux/Unix
Convert Binary,HEX, Oct to decimal This is a small Shell tutorial on how to convert different bases to other bases. Some times when working as system admin you require to convert different number systems to others. In this post we will see how to convert different number systems to others. Decimal to Binary echo “obase=2;(…)