LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-07-2024, 11:19 AM   #16
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 365

Original Poster
Rep: Reputation: 171Reputation: 171

Quote:
Originally Posted by r1w1s1 View Post
I cannot access, I'm from Brazil.
I think I now have shields down for Brazil.
 
Old 03-07-2024, 11:53 AM   #17
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 365

Original Poster
Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by pan64 View Post
is there any way to make it available for other distros?
Great idea, but I do not know the details of how packages are created for other distros. I've made some inroads on Cygwin packaging but nothing is ready to announce.

Quote:
Originally Posted by pan64 View Post
probably add -n|--number to print top N lines.
Good suggestion, I'll consider it for a future release. Of course I'll have to change the name too

Quote:
Originally Posted by pan64 View Post
add short options, like -i|--inodes -a|--apparent-size -h|--help (or -?) -V|--version
I like short options but there are other considerations.
Like df and du, dtt uses -h for --human-readable. So it is not available for --help.
I will not add -? because ? is a shell wildcard character. Always save your friends from unexpected shell globbing when you can.
Maybe ten percent of utilities use -V for --version. Most uses are for something else. For example, vim uses it for verbose mode.
df and du pair -a with --all. I am reserving -a for the possibility that --all will be meaningful to dtt in a future release.
df (but not du) already supports -i for --inodes, I will consider it for a future release.

Quote:
Originally Posted by pan64 View Post
and as it was mentioned would be nice to have either a ~/.dttrc for user specific defaults or an env var which may contain default options (like less).
dtt is designed to work like df and du in this regard. The environment variables DTT_BLOCK_SIZE, BLOCK_SIZE, and BLOCKSIZE can be used to change the reporting unit of measure. For example, DTT_BLOCK_SIZE=1024 gets you Gnu-like output.
 
Old 03-07-2024, 05:34 PM   #18
scuzzy_dog
Member
 
Registered: Apr 2021
Location: Free State of Texas (somewhat free)
Posts: 108

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
is there any way to make it available for other distros?
It's a PERL script. No install needed. I just copied /usr/bin/dtt to a CentOS box to /usr/bin too.

Last edited by scuzzy_dog; 03-07-2024 at 05:35 PM.
 
Old 03-07-2024, 06:18 PM   #19
metaed
Member
 
Registered: Apr 2022
Location: US
Distribution: Slackware64 15.0
Posts: 365

Original Poster
Rep: Reputation: 171Reputation: 171
Quote:
Originally Posted by scuzzy_dog View Post
It's a PERL script. No install needed. I just copied /usr/bin/dtt to a CentOS box to /usr/bin too.
Glad you liked it. Yes and if you manually copy the program it should support Perl interpreters all the way back to 5.6.1.

Ideally, I would learn to package for CentOS so a person can use whatever the native package installer tools are, and get software updates. Presumably there's a third party software repository where the package could be submitted. Also ideally, I would build and run tests on CentOS before packaging and distribution, in case there's any distro-specific weirdness.
 
  


Reply



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
announcing Disk Top Ten (dtt) 1.0a, a "where's my disk space" utility metaed Slackware 29 01-24-2024 05:17 PM
announcing Disk Top Ten (dtt) version 2b, a better "where's my disk space" utility metaed Slackware 9 01-24-2024 05:16 PM
A Top Ten List Of Top Ten Lists! cousinlucky General 2 10-29-2011 10:13 AM
LXer: Announcing Daffodil Replicator (E) 3.1.0 Release Candidate LXer Syndicated Linux News 0 01-01-2007 01:03 PM
LXer: Ten BY TEN. India's IT & BPO Outsourcing. LXer Syndicated Linux News 0 12-26-2005 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:21 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
Open Source Consulting | Domain Registration