nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Commands on Commands

This is a discussion on Commands on Commands within the Getting started tutorials forums, part of the Linux Getting Started category; Hi all, I am in need of commands which are capable on running on commands I know these below commands ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2010, 07:25 AM
kumarat9pm's Avatar
Senior Member
User
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL,UBUNTU..
Posts: 439
Thanks: 20
Thanked 20 Times in 18 Posts
Rep Power: 5
kumarat9pm has a spectacular aura about kumarat9pm has a spectacular aura about kumarat9pm has a spectacular aura about
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default Commands on Commands

Hi all,

I am in need of commands which are capable on running on commands

I know these below commands as of now, please share your thoughts

strace -- very much handy when debugging a command/script which will struck in middle of execution. This command will be tough when you start using it initially, but will come hand when start using excessively. and there are some more sister commands for this ie ltrace mtrace which i never used, please give some inputs on these...

For example if we want to see how ls command is executed and what to see what actually ls command is doing.. you can check that out by using strace

Code:
strace ls
watch --used to see a command executino at a regular intervels(by default 2 sec)

some valuable examples

1)monitoring a copy activity of CD/DVD, which will show the progress.

Code:
cp -ar /dev/cdrom /mnt &
watch ls -l /mnt
2)watching who are connecting to a system and disconnecting
Code:
watch lsof -i
time --To see how much time a command taken to execute

Code:
time ls
time shellscript.sh
whereis --to find where a command located

Code:
whereis ls
whatis --to get one line info on a command

Code:
whatis ls
And a well known man command and info command

Code:
man ls
info ls
__________________
Thanks,
Surendra Kumar Anne
Ubuntu: Simple, Stylish and Striking..!
Linux: Fast, friendly, flexible and .... free!
Support Open source.

Last edited by kumarat9pm; 02-01-2010 at 07:38 AM. Reason: typo error
Reply With Quote
The Following User Says Thank You to kumarat9pm For This Useful Post:
raj (05-01-2010)
  #2 (permalink)  
Old 05-01-2010, 08:34 PM
raj's Avatar
raj raj is offline
Senior Member
User
 
Join Date: Jun 2005
Location: Hyderabad
OS: Fedora, Debian Linux
Posts: 307
Thanks: 42
Thanked 8 Times in 8 Posts
Rep Power: 6
raj will become famous soon enough raj will become famous soon enough
Default

10x for sharing it. Good commands. You missed gdb.
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
  #3 (permalink)  
Old 06-01-2010, 09:29 AM
kumarat9pm's Avatar
Senior Member
User
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL,UBUNTU..
Posts: 439
Thanks: 20
Thanked 20 Times in 18 Posts
Rep Power: 5
kumarat9pm has a spectacular aura about kumarat9pm has a spectacular aura about kumarat9pm has a spectacular aura about
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default

@raj.. i didnt get what actually this gdb used in administration..
can you give some inputs on this.
__________________
Thanks,
Surendra Kumar Anne
Ubuntu: Simple, Stylish and Striking..!
Linux: Fast, friendly, flexible and .... free!
Support Open source.
Reply With Quote
  #4 (permalink)  
Old 06-01-2010, 10:55 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,706
Thanks: 11
Thanked 243 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

gdb is used to debug programs or servers which are crashing or chrooted servers. This is also useful to debug various apps which works everywhere but not on your server for some weird causes. Most Linux server comes as open source project hence it is possible to use gdb. However, it is more of programmers tools.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #5 (permalink)  
Old 26-02-2010, 06:34 AM
rai rai is offline
Junior Member
User
 
Join Date: Feb 2010
OS: CentOS
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rai is on a distinguished road
Send a message via AIM to rai Send a message via MSN to rai Send a message via Yahoo to rai
Default

Yes, nixcraft V

'gdb' can also used be used in Linux servers to analyse the 'core' files created. This is a good link to learn how to use it -
How to analyze a core file and submit information to support
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Execute commands via ssh java.beans CentOS / RHEL / Fedora 4 01-05-2009 07:35 PM
How to monitor RSH commands mformit Solaris/OpenSolaris 0 11-04-2008 09:44 PM
basic commands? seshaionline Getting started tutorials 7 24-03-2008 11:30 PM
Log all SSH commands at ssh-client abhijith Getting started tutorials 4 24-11-2007 10:17 PM
using shell commands in C steve Coding in General 2 14-10-2005 09:25 AM


All times are GMT +5.5. The time now is 03:05 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38