Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6090767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:15:06+00:00 2026-05-23T12:15:06+00:00

Input: df -k Output: Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 10332220 443748

  • 0

Input: df -k

Output:

Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s0    10332220  443748 9785150     5%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 45475864    1688 45474176     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/dev/dsk/c0t0d0s3    10332220 3513927 6714971    35%    /usr

I want to omit the 1st line Filesystem kbytes used avail capacity Mounted on from the output.

I used df -k | tail -n+2 in linux to get exactly what i wanted, but in SunOs I get

zenvo% df -k | tail -n+2
usage: tail [+/-[n][lbc][f]] [file]
   tail [+/-[n][l][r|f]] [file]

How can i achieve the Required output:

/dev/dsk/c0t0d0s0    10332220  443748 9785150     5%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 45475864    1688 45474176     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/dev/dsk/c0t0d0s3    10332220 3513927 6714971    35%    /usr

Note: No. of rows might change

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:15:07+00:00Added an answer on May 23, 2026 at 12:15 pm

    I haven’t used SunOS but using sed you should be able to delete the first line like this:

    df -k | sed -e /Filesystem/d
    

    edit: But you would have to be careful that the word Filesystem doesn’t show up elsewhere in the output. A better solution would be:

    df -k | sed -e /^Filesystem/d
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing some input/output between a c++ and a python program (only floating
Why is it necessary to close standard input/output/error when writing a (unix) daemon?
Just out of curiosity, how does iostream access the input-output system. (I have a
I am a beginner in UNIX. I am finding some difficulty in input/output redirection.
See updated input and output data at Edit-1. What I am trying to accomplish
how can i make a device input and output control program on windows 7??
I'm using C# to input and output multi 2d arrays into SQL database. The
I have a perl program that takes input and output file arguments, and I'd
So a FILE stream can have both input and output buffers. You can adjust
Is there a way to use these operators to input and output binary data?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.