Some times you need to know the device node identifier. e.g. /dev/sda1, a partition UUID, a partition label or partition type (ntfs,fat32 etc). By using the following command you can see all the relevant information about your partitions.
Open a Terminal
$ sudo blkid -c /dev/null
sample output
/dev/sda1: UUID="D8C0A470C0A45692" TYPE="ntfs"
/dev/sda5: LABEL="Ddrive" UUID="FA0C1D8C0C1D44D3" TYPE="ntfs"
/dev/sda6: UUID="1ccc38e0-5981-438b-adc0-d90301eee022" TYPE="ext4"
/dev/sda7: UUID="03a0bd37-b163-49a2-b1a9-33017d764ba8" TYPE="swap"
/dev/sda8: LABEL="ibex" UUID="61f6b15b-8be8-43d8-904f-4e599b608994" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda9: UUID="3b70839c-525c-490c-9892-791a539b3005" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda10: LABEL="EDrive" UUID="E8B8420AB841D7A8" TYPE="ntfs"
/dev/ramzswap0: TYPE="swap"
Tuesday, December 13, 2011
How to Find HardDisk Partitian UUID, Label , Type and Device node Identifier in Ubuntu / Debian Linux
Posted by panayara at 8:23 PM 1 comments Links to this post
Labels: Tips and Tricks, ubuntu
Monday, December 12, 2011
How to Monitor Realtime Network Traffic in Ubuntu / Debian Linux
Here you can see How to Monitor Realtime Incoming Network Traffic in Ubuntu / Debian Linux with simple Utility IFSTAT
How to Install ifstat
Open a terminal
How to run
eth0 eth1 KB/s in KB/s out KB/s in KB/s out 4.67 5.21 3.67 5.05 3.93 4.59 0.38 0.74 3.93 4.59 6.19 8.30 3.93 4.59 3.03 4.33
Posted by panayara at 9:36 PM 0 comments Links to this post
Labels: networking, Tips and Tricks
Thursday, December 8, 2011
sudo with out asking password in Ubuntu / Debian Linux
How to sudo with out asking password in Ubuntu / Debian Linux
open a terminal
$ sudo visudoNow Add this line at the end (change “panayara” to your username):
panayara ALL=(ALL) NOPASSWD: ALLCtrl-X to leave, save your changes, and you're done!
Posted by panayara at 10:58 PM 0 comments Links to this post
Wednesday, December 7, 2011
What are seven fields in the Ubuntu Linux Password file
What are seven fields in the /etc/passwd file (Ubuntu Linux Password file)
1 2 3 4 5 6 7
"username" is login name.
"x" is link of password.
"UID" stands for userID.
"GID" stands for groupID.
Posted by panayara at 9:17 PM 0 comments Links to this post
Tuesday, December 6, 2011
Common Filesystem Types used in Ubuntu / Debian Linux
Filesystem Types
* The most common filesystem types are:
ext2,ext3,ext4 The standard Linux filesystems
iso9660 The filesystem used on CD-ROMs
proc Not a real filesystem, so uses none as the device.
Used as a way for the kernel to report system information to user processes
Sysfs exports information about devices and drivers from the kernel device model to user space
vfat The filesystem used by Windows 95
auto Not a real filesystem type. Used as a way of asking the mount command to probe for various
filesystem types, particularly for removable media
ReiserFS is a general-purpose, journaled computer file system designed and implemented by a team at
Namesys led by Hans Reiser
XFS is a journaling filesystem, developed by SGI
JFS is a journaling filesystem, developed by IBM
tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems
usbfs USB Device Filesystem.
Networked filesystems include
nfs (Unix-specific)
smbfs (Windows or Samba)
Posted by panayara at 9:03 PM 0 comments Links to this post
Sunday, December 4, 2011
List of Server applications you can run in Ubuntu / Debian Linux
Name of some Server applications you can run in Ubuntu / Debian Linux
sshd — ssh server
sendmail — mail server
qmail — mail server
postfix — mail server
named — DNS server
squid — Web proxy server
nessusd — penetration testing server
postgresql — database server
mysql — database server
oracle — database server
wu-ftpd — ftp server
vsftpf ---- ftp server
samba -- windows file sharing
And more............
Posted by panayara at 11:27 PM 2 comments Links to this post
Wednesday, November 30, 2011
Useful Linux Network Commands for Ubuntu / Debian
Ubuntu Linux Useful Networking commands
ifconfig – displays information network
iwconfig – displays information from wireless
sudo /etc/init.d/networking restart – reset the network
/etc/network/interfaces – (file) manual configuration
ifup interface – bring online interface
ifdown interface – disable interface
iwlist scan - shows wireless networks that are available in the area with basic encryption information
lshw -C network - Shows Details of Interface card and drivers of each networking device
lspci -nn - Shows PCI vendor and device codes as both numbers and names of hardware connected to the pci bus
lsusb - Shows USB connected hardware
lshw -C usb - Additional info on USB related hardware (good for USB dongles)
route -n - Lists kernel IP routing table — Good for troubleshooting problems with the gateway
sudo dhclient - Request IP address from DHCP server for specified interface
sudo dhclient -r - Release IP address associated with specified interface
/etc/udev/rules.d/70-persistent-net.rules - (File) which assigns logical names (eth0, wlan0, etc) to MAC addresses
cat /etc/resolv.conf - Lists DNS servers associated with network connections
Posted by panayara at 9:53 PM 2 comments Links to this post
Thursday, November 3, 2011
How to Resize FAT Filesytem using Ubuntu LInux Utility : Fatresize
Fatresize is a command line tool for resizing MS Windows FAT16 / FAT32 file systems.
Fatresize Installation:
Using Fatresize:$ sudo apt-get install fatresize
Fatresize follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below.
-h --help: Show summary of options.
-s --size: Re-size volume to SIZE[k|M|G|ki|Mi|Gi] bytes
-i --info: Show volume information
-p --progress: Show progress
-q --quite: Be quite
-v --verbose: Verbose (not version)
Fatresize Examples:
fatresize -s 2G /dev/evms/hdb2
fatresize -q -s 3G /dev/hde6
fatresize -i /dev/hdg3
Posted by panayara at 10:35 PM 1 comments Links to this post
Saturday, October 29, 2011
How to Find the type of Memory Installed in Your Computer : Ubuntu Trick
In the case of upgrading, you have to know what type of memory installed in your machine. Capacity, Type, Speed etc. here you can see a simple trick to find all details of your memory.
Open a terminal and type the following
$ sudo dmidecode --type memory
You can see the output like this
# dmidecode 2.9
SMBIOS 2.4 present.
Handle 0x0017, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 8 GB
Error Information Handle: Not Provided
Number Of Devices: 4
Memory Device
Array Handle: 0x0017
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: DIMM
Set: None
Locator: J6H2
Bank Locator: CHAN A DIMM 1
Type: DDR2
Type Detail: Synchronous
Speed: 800 MHz (1.2 ns)
Manufacturer: 0x7F4F000000000000
Serial Number: 0x0007BF39
Asset Tag: Unknown
Part Number: 0x4A4D383030514C552D324720202020202020
Posted by panayara at 11:16 PM 0 comments Links to this post
Thursday, October 27, 2011
Trash-cli : Manage Trash from Command line in Ubuntu Linux
By using a utility named trash-cli you can simply mange Trash from command line
The location of Trash folder in old GNOME version is (~/.Trash), in current versions it is in ~/.local/share/Trash. There is two sub folders named files and info. The files folder contains the files deleted and info directory consists of meta data for each deleted file.
First step, install trash-cli utility
$ sudo apt-get install trash-cli
It installs three commands,
1. list-trash to list down the files in trash
2. trash to move the file to trash
3. restore-trash to restore the file to original path
Usage:
$ trash love.txt ( move the file love.txt to trash folder)
$ list-trash (List the contents of Trash folder)
2011-10-27 22:46:28 /home/abc/love.txt
$ restore-trash love.txt (Restore the file love.txt)
0 2011-10-27 22:46:28 /home/abc/love.txt
What file to restore [0..0]: 0 (if there is more than one file list shows 1 2 3 etc)
Posted by panayara at 11:02 PM 1 comments Links to this post




Stumble It!

