Vamsi Pavan’s Place

When curiousity outbursts …..

Entries Tagged as 'Linux'

Vim: visual block mode commands

January 6th, 2010 · No Comments · Linux, Tools

Selecting Text (Visual Mode)

To select text, enter visual mode with one of the commands below, and use arrow keys to highlight the text you are interested in. Then, use some command on the text.
The operators that can be used are:
~ switch case
d delete
c change
[…]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Ubuntu: firefox always starts in offline in hardy

March 11th, 2009 · No Comments · Linux

After my upgrade to hardy, firefox always starts with offline mode and it’s really hectic to keep change it back to online and refresh the each saved session tabs.
Also in parallel, I find my NM (network manager) applet showing status as not connected even though I connect by dhcp setting through dhcp-client.
After googling for some […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Linux : Awesome commands - find

March 9th, 2009 · No Comments · Linux, Tools

Name
find — Searching for files and possibly executing commands on them

Synopsis

find [path] [options]

Examples

To list all files below a given directory, say /home/user/some-directory […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Typical Unix/Linux recursive search commands

June 9th, 2008 · No Comments · Algorithms, Linux

The Typical one is - to find the files with some pattern recursively in a given directory.
$ find path/to/dir -name “*.html”
You can replace the “*.html” to your own filename pattern.
Another one is, in addition to above I need the text lines inside those files starting with letter t.

$ find path/to/dir -name “*.html” -exec grep “^t” […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:···

Recursive execusion of commands in Linux command prompt

December 6th, 2006 · No Comments · Linux, Shell

When we want to execute any command recursively for a directory, we can use find command for that.
find . -name ‘blah*’ -exec rm -rf {} ;
But some times, it gives the error as Argument list too long. In that kind of situations, we better we go for this.
find . -name ‘blah*’ -print0 | xargs -0 […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Managing disk quotas in Linux

October 6th, 2006 · No Comments · Linux

Table of Contents
1. Setting quotas
2. Enabling and disabling quotas
3. Checking and updating quotas
Summary

1. Setting quotas
Linux enables you to limit the amount of space that a user or group can consume on a given partition. To do this, you use the quotaon, quotaoff, and edquota commands.
You can configure a quota that […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Creating partitions and file systems in Linux

October 6th, 2006 · No Comments · Linux

Table of Contents
1. Disk types, units, and partitions
2. Creating partitions
3. Using fdisk
4. Creating file systems with mkfs
Summary

1. Disk types, units, and partitions
Before partitioning a disk in Linux, it is useful to have some knowledge of hard drive geometry and structure. You also need to know the conventions used by Linux to […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

The role of partitions in a Linux file system

October 6th, 2006 · No Comments · Linux

Table of Contents

1. The role of partitions in Linux
2. Planning Linux partitions
3. Repartitioning
Summary

1. The role of partitions in Linux
Before they can be used, hard drives must be divided into sections called partitions. Partitions are different physical sections on a hard drive that can be formatted and used independently.
The system sees each […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Some resources for Fedora Installations …..

August 6th, 2005 · No Comments · Linux

Fedora Core 4 Linux Installation Notes
Personal Fedora Core 4 Installation Guide
Fedora Core 3 Linux Installation Notes
Personal Fedora Core 3 Installation Guide
Fedora Core 4 Tips and Tricks
Unofficial guide for Fedora Core
Fedora Multimedia Installation
Some more

Bookmark it!
These icons link to social bookmarking sites where readers can share and discover new web pages.

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags:

Write permissions to vfat filesystems for normal users

August 5th, 2005 · No Comments · Linux

We all know the normal usage of ‘mount’ as
command line usage:
$ mount -t /dev/hda1 /mnt/directory
in /etc/fstab file:
/dev/hda1 /mnt/directory vfat defaults 0 0
By using either of above usages, only root can have write permissions on vfat filesystems. For getting write permissions to normal users:
/dev/hda1 […]

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

[Read more →]

Tags: