How to know, the release version of Ubuntu installed in your system..?
$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
Tuesday, February 10, 2009
Installed package version.
How to know the Installed version of the particular package in debian..?
You can use the following command...
apt-cache show
That will list the version information.
You can use the following command...
apt-cache show
That will list the version information.
Wednesday, June 4, 2008
Useful gdb commands
The following will be useful for the GDB..
(gdb) disassem
(display memory as machine instructions)
(gdb) info frame
(describe current frame or frame at [addr])
(gdb) disassem
(display memory as machine instructions)
(gdb) info frame
(describe current frame or frame at [addr])
Tuesday, June 3, 2008
Check availability of a Socket.
To check whether a particular port is available or not, we can use
1) netstat -a
{ if you are in the same computer, it will list all the ports it is listening, and all the connections established. }
2) nmap
{ if you are checking from a remote system, whether a particular port is available.}
stinbng51:/home/nthattil# nmap -sU -p 4343 x.x.x.x
Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2008-06-03 14:25 IST
Interesting ports on stinbng46 (x.x.x.x):
PORT STATE SERVICE
4343/udp open|filtered unicall
MAC Address: 00:1E:C9:AD:4F:DE (Unknown)
Nmap finished: 1 IP address (1 host up) scanned in 0.473 seconds
stinbng51:/home/nthattil#
1) netstat -a
{ if you are in the same computer, it will list all the ports it is listening, and all the connections established. }
2) nmap
{ if you are checking from a remote system, whether a particular port is available.}
stinbng51:/home/nthattil# nmap -sU -p 4343 x.x.x.x
Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2008-06-03 14:25 IST
Interesting ports on stinbng46 (x.x.x.x):
PORT STATE SERVICE
4343/udp open|filtered unicall
MAC Address: 00:1E:C9:AD:4F:DE (Unknown)
Nmap finished: 1 IP address (1 host up) scanned in 0.473 seconds
stinbng51:/home/nthattil#
Tuesday, January 22, 2008
How to get list of installed softwares in Debian/Ubuntu System
The command
$ dpkg --get-selections
would list all the installed programs in your debian system.
Monday, January 14, 2008
Unlock the Installation Lock Ubuntu/debian
E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)
It says that a lock file preventing your package manager from getting exclusive access. Package managers create these lock files when they starts and if they crash, you reboot, your power goes out, etc, before they are completed, the lock file remains and the next manager believes another manager is already running
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
It says that a lock file preventing your package manager from getting exclusive access. Package managers create these lock files when they starts and if they crash, you reboot, your power goes out, etc, before they are completed, the lock file remains and the next manager believes another manager is already running
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
Enable MACRO in GDB
How to Enable MACRO support in GDB..?
compile your source code using the options -gdwarf-2 -g3,
macro expand expression
for more information, you can go here
compile your source code using the options -gdwarf-2 -g3,
gcc -gdwarf-2 -g3 then in gdb prompt, you can issue commandsmacro expand expression
for more information, you can go here
Subscribe to:
Posts (Atom)