How to make df command?


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers How to make df command?
# 1  
Old 12-04-2019
How to make df command?

in RHEL 6.10, how can we make the the df -k return the output without wrapping. And wihout using the df -Pk option. After we patched a Linux server from 6.5 to 6.10:

The df -k on RHAT 6.10 it wraps the line for ex:

6.10:

/dev/mapper/vgapp01-vendor

5160576 1731696 3166736 36% /vendor

Where 6.5 keeps it on one line:

6.5:

/dev/mapper/vgapp01-vendor 5160576 2041056 2857376 42% /vendor



The only way to keep from wrapping in 6.10 is to run the df -k command as df -Pk.


However, how can we make df -k behave at the server level like df -Pk ?


Thanks
# 2  
Old 12-05-2019
With over 100 posts, mrn6430, you should know every well that to keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)



Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums
Old 12-05-2019
I am closing this "cut and paste" spam of a question.

You can see from the post, the poster has just cut and posted from another web site into this one without taking the time to format his post for this forum:


Quote:
in RHEL 6.10, how can we make the the df -k return the output without wrapping. And wihout using the df -Pk option. After we patched a Linux server from 6.5 to 6.10:
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[B][U][FONT=Calibri][SIZE=3]The df -k on RHAT 6.10 it wraps the line for ex:[/SIZE][/FONT][/U][/B]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[FONT=Calibri][SIZE=3]6.10:[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[FONT=Calibri][SIZE=3]/dev/mapper/vgapp01-vendor[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[FONT=Calibri][SIZE=3] 5160576 1731696 3166736 36% /vendor[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[FONT=Calibri][SIZE=3]Where 6.5 keeps it on one line:[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[FONT=Calibri][SIZE=3]6.5:[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[FONT=Calibri][SIZE=3]/dev/mapper/vgapp01-vendor 5160576 2041056 2857376 42% /vendor[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[FONT=Calibri][SIZE=3] [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[FONT=Calibri][SIZE=3]The only way to keep from wrapping in 6.10 is to run the df -k command as [B][COLOR=red]df -Pk. [/COLOR][/B][/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]
[B][COLOR=red][FONT=Calibri][SIZE=3] [/SIZE][/FONT][/COLOR][/B]
[FONT=Times New Roman] However, how can we make df -k behave at the server level like df -Pk ?[/FONT]
[FONT=Times New Roman]
[/FONT]
[FONT=Times New Roman]Thanks[/FONT]
This is a kind of "cut-and-paste" spam, even though the question is technical and relevant to the site, it is none-the-less, cut-and-paste spam.

See also:

How to make df command?-screen-shot-2019-12-05-112439-ampng

Please show the community a basic courtesy by (1) formatting your posts correctly and please (2) stop cutting and pasting improperly formatted text from other Internet properties, here.

According to our records, you have a very long history here (see image above) of not showing any concern for the formatting and quality of your posts. I hope your attitude toward posting poorly formatted information on Internet properties will change sooner than later.

Thanks.
These 2 Users Gave Thanks to Neo For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Utilizing the Make Command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: ]Compile cpp2html.c to produce cpp2html.o. ( Important: the source code in these files is C, not C++, and so... (1 Reply)
Discussion started by: bgnaranjo1
1 Replies

2. Homework & Coursework Questions

Utilizing the Make Command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Compile cpp2html.c to produce cpp2html.o. ( Important: the source code in these files is C, not C++, and so... (8 Replies)
Discussion started by: lamentofking
8 Replies

3. Homework & Coursework Questions

Using the Make command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: File hello.h #include <stdio.h> File main.c #include "hello.h" main() { printhello(); ... (4 Replies)
Discussion started by: lilbo4231
4 Replies

4. Solaris

how to make all of this in one command

dears what i need to make is cp -irp file_name filename tar cvf filename.tar filename gzip filename.tar in one commane using exec it that prossible and how can i do that (4 Replies)
Discussion started by: xxmasrawy
4 Replies

5. Solaris

make command problem

hi, I'was trying to compile a simple game , just for testing the system, but the make command gave me problems, so I read that it was best to have a gnu make package installed so I made pkgrm SUNWgmake and installed the gnu make from sunfreesoftware, the problem is that now when I run make... (9 Replies)
Discussion started by: freeware
9 Replies

6. UNIX for Advanced & Expert Users

problem with make command

hi guys would u clarify me how to use make command , how to write rules of make command and to execute . (1 Reply)
Discussion started by: chinakampalli p
1 Replies

7. Solaris

make command failure

Hi After downloading and compiling new ntp source for Solaris 10 I used the make command on the ntp directory. I received the following output: bash-3.00# make (bk version) >/dev/null 2>&1 && \ cd . && \ x=`bk -R prs -hr+ -nd:I: ChangeSet` && \ y=`cat version... (2 Replies)
Discussion started by: shaife720
2 Replies

8. Solaris

C compiler and make command

Hey Guys.... I installed Solaris 10 (10/08) on _X86 platform, I need install any software of load balance. I find the pen-0.18.0-sol10-x86-local software. I cant finish the install process , i dont find the make command, I think this command is associated to the C compiler process. But... (2 Replies)
Discussion started by: aggadtech08
2 Replies

9. UNIX for Dummies Questions & Answers

make command

hi i tried to search for the "make" command but to no avail. this is what happens: when i try to type the "make" command, it prompt me the error " csh:make:not found ***error code 1 make:Fatal error: command fail for target 'all' " i have just freshly install solaris 9 on my server.... (8 Replies)
Discussion started by: legato
8 Replies

10. UNIX for Dummies Questions & Answers

make command

Dear Guys , Kindly note that i have sun solaries 8 intel machine . i installed apache and it is working fine . i am installing perl5 , MD5 and CGI . but whenever i execute the commands , make , make test and make install i get error message : not found # make make: not found also i... (2 Replies)
Discussion started by: tamemi
2 Replies
Login or Register to Ask a Question