What does this line do?

Posted on 2004-11-03
Last Modified: 2010-04-21
What does the following line do?

echo up for `cat  /proc/uptime` secs  | grep –v 1234 >  test
Question by:slavikn
    LVL 1

    Author Comment

    Oh... I've found out what it does.
    I just don't understand why the file
    contains two numbers.
    What does each number mean?
    LVL 4

    Accepted Solution

    the first number time since start in seconds  (the uptime you get if you type "uptime")

    I'm not sure about the second one, but my guess is that it's system idle time (rather than system usage), also  in seconds
    LVL 1

    Author Comment

    Thanks (already found it).

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now