LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2015, 12:23 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
How to pass parameters to Top command using command line.


This is what we do in order to sort top output.
1) top
2) Press "f" (lower case) <== to enable/disable colums
3) Press the following keys "HIOQTWK" (upper case)
3b) Press "p" (lower case) <== to enable "swap" column
3c) Press "Enter" to complete
4) Press "F" (upper case) <== To sort by column
5) press "p" (lower case) <== sort by swap column
6) press "Enter" to complete.

However i was wondering if i can do all this using command line to save time .
Any link or help will be appreciated.
 
Old 06-09-2015, 12:43 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,537

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
See the manpage - section 6b.
Set top up as you want it then issue a "W" to create the config file - it will get used in future. Can be updated in need.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[C] Preferred way to parse command line arguments/parameters? displace Programming 2 12-26-2013 02:38 PM
[SOLVED] there is one name 4 for command-line-parameters in shell script miillerje Linux - Newbie 3 10-21-2012 07:25 AM
pass parameter in command line lingyun Linux - Newbie 4 04-21-2009 10:42 PM
Utf-8 command line parameters mik2709 Linux - Newbie 1 03-14-2008 09:10 AM
Pass command line instructions during install? Clayton8 Linux - Newbie 7 11-07-2007 03:15 AM


All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration