with Tags:
linux
X

Linux stat command with examples
The Linux command 'stat' is used for displaying status information of Linux files and file systems. In this article, we will discuss the usage of stat command with examples.
stat command syntax
The syntax of stat command is :
stat [OPTION]... FILE...
stat command examples
1. A basic example
In the simplest form, the stat command can be used by supplying a file name as an argument :
$ stat testdisk.log
File: `testdisk.log'
Size: 1014 Blocks: 8 IO Block: 4096 regular file
Device: 805h/2053d Inode:... [More]
Tags:  status stat linux filesystem file |
Use ctrl+x+e as a tool to easily edit command line text
A few days back, I was trying to find details of a specific type of files on my Ubuntu box in office. Here is what I was trying to do : find ./ -name "*.out" | xargs ls -lart As you can see that I was trying to list out the details of all the files having .out extension. So far so good as I got what I wanted. Then one of my colleague wanted to use the same command on his Linux machine so he asked me to copy and send it to him. Though copying from command line using mouse and keyboard is not that difficult but somehow after I... [More]
Tags:  command tips linux line tricks |
Search patterns in files using Linux grep command
Does you job requires you to frequently search for patterns in files through Linux command line? Or, do you feel frustrated when you have to open files in UI editors to search for strings or patterns on Linux? Well, if yes then the Linux grep command is for you. This command can be used to search a pattern in one or more files directly from the command line.
In this article, we will understand the usage of Linux grep command through practical examples.
SYNTAX Before jumping on to the examples, lets first take a look on how to use the... [More]
Tags:  linux command grep |
htop - Monitor Linux processes in real time
The htop utility in Linux allows you to interactively monitor the processes in real time. It's very similar to top but has some extra features that makes it an even better command line utility for process monitoring. Here is an excerpt from the man page of htop : Htop is a free (GPL) ncurses-based process viewer for Linux. It is similar to top, but allows you to scroll vertically and horizon‐ tally, so you can see all the processes running on the system, along with their full command lines. Tasks related to processes (killing, ... [More]
Tags:  top linux monitor process htop |
A good year for Linux
Chris Walden, here, Managing Editor for Linux and Open Source on developerWorks and creator of this "Real World Linux" community. I wanted to share something with all of you as we close out 2012. PC World, a publication that is not necessarily known for pushing Linux had a recent article: Five reasons 2012 was a great year for Linux . If you are feeling discouraged about spreading more Linux around your life, it may pick you up a little. If you already have plenty of Linux and want to help other people understand it might bring... [More]
Tags:  2012 linux restrospective review |
2012 - What an year for Linux
The Linux foundation came up with a video recently that celebrates the success and milestones achieved by Linux in the year 2012. The video shows how Linux powered devices like Android smart-phones and supercomputers are dominating the world today. Other than this, video highlights chromebooks being sold by google and Linux conferences that took place around the world in 2012. Watch the video for more.
Note : The credits for the video goes to the author. The Intention is to just share the information through this video.
Tags:  milestones linux success 2012 |
Get over extensions, use file command to determine file types in Linux
The other day when I was searching for some file in my Linux system, I got a result with name 'TheLinuxCommandLine'. I was not sure what type of file was that as ' vim TheLinuxCommandLine ' produced the following output :
%PDF-1.6^M%âãÏÓ^M
3006 0 obj^M<>stream^M
...
...
... While I got a clue from the word 'PDF' in the output above that it could be a PDF file but then I thought that there should be utility that could gracefully tell the type of file supplied to it as input. I searched a bit and found a Linux command line utility... [More]
Tags:  magic file extensions linux command |
Linux sort command - Sort lines of text files
While going through an article on Linux text processing commands, I came across Linux sort command. I found this command interesting enough to read more about it and try out some of it's examples. So here in this article, I'll share my understanding on Linux sort command through some examples.
Before jumping on to examples, here is an excerpt of information from the man page of sort command:
NAME
sort - sort lines of text files
SYNOPSIS
sort [OPTION]... [FILE]...
sort [OPTION]... --files0-from=F
... [More]
Tags:  command linux sort |
Zsh - The new Linux/Unix shell everyone's talking about
What really is Zsh? Zsh (Z Shell) is a Unix shell with a powerful shell scripting engine. Zsh is an improvement over the Bourne Shell and includes some of the features of bash, ksh and tcsh. Why would you really use Zsh? 1) Command Completion -- like a ninja! Not only for files and directories but also for commands like git, kill etc. 2) Shared History This is one of the features I craved for while using bash. I usually like to work in multiple terminals and I like my command history to be shared with all the... [More]
Tags:  shell linux zsh |
Future is open - One of the cutest Linux commercial I have ever seen
I was on Youtube searching for a tutorial on some open source software and I stumbled upon this Linux/Opensource commercial. I found this one minute video so cute that I decided to share it with you all through this blog. I hope everybody will simply love it. The video Note : The credits for the video goes to the author. The Intention is to just share the information through this video.
Tags:  linux open source |
First they ignore you... Then they laugh at you... Then they fight you... Then you win...
Found this inspirational video on Youtube : Note : The credits for the video goes to the author. The Intention is to just share the information through this video.
Tags:  commercial linux |
Estimate file space usage with du command in Linux
The du command in Linux can be used to estimate the space usage by files and directories. This article describes the usage of du command through some examples. The syntax From the man page of du : SYNOPSIS
du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F
DESCRIPTION
Summarize disk usage of each FILE, recursively for directories. From the syntax, it is pretty clear that the du command does not have any mandatory argument. File name can be provided either as a direct argument or through a file. The output of... [More]
Tags:  du linux command |
Know more about files using Linux wc command
In Linux, wc is a small command line utility that can be used to display details like number of words, newlines, bytes etc for a file. The wc command can display some extra information like length of the longest line in the file. In this article we will discuss the usage of this command through examples. Here is the basic syntax of wc command :
wc [OPTION]... [FILE]... As clear from the syntax, multiple files can be supplied as input to the Linux wc command.
Linux wc command examples The file input.txt will be used in the examples... [More]
Tags:  count linux wc command newline byte |
Linux vim editor
There are many people out there who use Linux for their daily needs. Linux has almost replaced windows for these people and they tend to agree with the fact that Linux is addictive. Its the sheer power of customization, stability and robustness that has contributed to the success of Linux. For a person using computer for his/her daily stuff, a text editor is a very basic requirement. Same goes with the Linux users, a text editor is the bare minimum requirement for them and most of them tend to use GUI based text editors like gedit. When asked... [More]
Tags:  editor linux vim |
Useful Linux command examples - Part I
Various Linux distributions these days have started rolling out fancy GUIs to attract end users. Though this is a good strategy but working on Linux without understanding and using command line utilities is still not possible. Some one who uses Linux should know at least some basic commands that are required every now and then to accomplish trivial tasks. So, In this article, we will discuss a few commonly used (but must know) Linux commands with an example for each.
1. Linux ps command This command is used to provide information on the... [More]
Tags:  ifconfig top netcat(nc) locate netcat ps command linux |