<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: commandline in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969968#M77178</link>
    <description>&lt;BR /&gt; Hi,&lt;BR /&gt;&lt;BR /&gt; 1- &lt;BR /&gt;  ls -ahl  (on RedHat)&lt;BR /&gt;&lt;BR /&gt; 2- &lt;BR /&gt;&lt;BR /&gt; ps -euf | more&lt;BR /&gt; ps -eu | more &lt;BR /&gt; &lt;BR /&gt;</description>
    <pubDate>Sat, 10 May 2003 06:22:53 GMT</pubDate>
    <dc:creator>Khalid A. Al-Tayaran</dc:creator>
    <dc:date>2003-05-10T06:22:53Z</dc:date>
    <item>
      <title>commandline</title>
      <link>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969967#M77177</link>
      <description>1.what is the commandline to print all the hidden files in the current working directory sorted in reverse alphabetical order?&lt;BR /&gt;&lt;BR /&gt;2.what is the command line to print the usernames that have active processes running on the system.The commandline should print the user names only once(no repetition).&lt;BR /&gt;&lt;BR /&gt;thanks in advance....</description>
      <pubDate>Sat, 10 May 2003 03:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969967#M77177</guid>
      <dc:creator>Avery_1</dc:creator>
      <dc:date>2003-05-10T03:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: commandline</title>
      <link>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969968#M77178</link>
      <description>&lt;BR /&gt; Hi,&lt;BR /&gt;&lt;BR /&gt; 1- &lt;BR /&gt;  ls -ahl  (on RedHat)&lt;BR /&gt;&lt;BR /&gt; 2- &lt;BR /&gt;&lt;BR /&gt; ps -euf | more&lt;BR /&gt; ps -eu | more &lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Sat, 10 May 2003 06:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969968#M77178</guid>
      <dc:creator>Khalid A. Al-Tayaran</dc:creator>
      <dc:date>2003-05-10T06:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: commandline</title>
      <link>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969969#M77179</link>
      <description>Whow !&lt;BR /&gt;You were tough with Khalid, who did give you the corract answer :-))&lt;BR /&gt;'ls' is command for listing current directory, and you had arguments with '-' to precise the command :&lt;BR /&gt;-a says to show also hidden files, starting with . (you didn't precise if you needed to see only those file, so we assume that you want to see them all)&lt;BR /&gt;-h is not necessary, but asks that sizes are printed in human readable format (kb, mb instead of bytes only)&lt;BR /&gt;-l uses long listing format.&lt;BR /&gt;He left behind 'r', which completes your need by printing those files in reverse order. Your answer comes to :&lt;BR /&gt;ls -alr&lt;BR /&gt;If you want only hidden files to be sorted, then you have to go a little further, on sorting only those files by the 'grep' command :&lt;BR /&gt;'ls -alr | grep .'&lt;BR /&gt;Same as before, sorting only what include that hidden code, '.'.&lt;BR /&gt;&lt;BR /&gt;Same for second command : I would use a slight variation :&lt;BR /&gt;ps command of course, to list processes running.&lt;BR /&gt;I would add :&lt;BR /&gt;-a to list them all (even those not belonging to you)&lt;BR /&gt;-u to sort by user&lt;BR /&gt;-x to select processes without controlling ttys.&lt;BR /&gt;I would use for your confort a redirection to 'sort', to have them once (no repetition), with -d for example to get them in alphabetical order.&lt;BR /&gt;Your command becomes :&lt;BR /&gt;'ps -aux | sort -d'.&lt;BR /&gt;&lt;BR /&gt;Note that you can precise on 'ps' '--user' to select by effective user name or ID.&lt;BR /&gt;RGDS&lt;BR /&gt;J</description>
      <pubDate>Sat, 10 May 2003 19:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969969#M77179</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-05-10T19:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: commandline</title>
      <link>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969970#M77180</link>
      <description>Avery,&lt;BR /&gt;A general piece of advice regarding unix commands.  Try using man, it is a beautiful thing and one of the things that can get you adjusted to linux command line (presumably you are getting wheened off windoze).&lt;BR /&gt;&lt;BR /&gt;e.g. type this at command prompt:&lt;BR /&gt;&lt;BR /&gt;man ls&lt;BR /&gt;&lt;BR /&gt;Tells you everything you needed.  Between man and an understanding of pipes, |, the world is your oyster.&lt;BR /&gt;&lt;BR /&gt;peace.</description>
      <pubDate>Sun, 11 May 2003 14:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969970#M77180</guid>
      <dc:creator>Charles Coombs</dc:creator>
      <dc:date>2003-05-11T14:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: commandline</title>
      <link>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969971#M77181</link>
      <description>&lt;BR /&gt;&lt;BR /&gt; Hi, &lt;BR /&gt;&lt;BR /&gt;// No Points Please //&lt;BR /&gt;&lt;BR /&gt; Thanks Jerome.... Good detailed answer.</description>
      <pubDate>Mon, 12 May 2003 04:05:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/commandline/m-p/2969971#M77181</guid>
      <dc:creator>Khalid A. Al-Tayaran</dc:creator>
      <dc:date>2003-05-12T04:05:48Z</dc:date>
    </item>
  </channel>
</rss>

