Skip to main content

Questions tagged [coreutils]

GNU Core Utilities are the GNU project's implementation of the core command-line tools of a POSIX system, including tools like ls, cp, mv, rm, etc.

-1 votes
0 answers
48 views

dd command arguments

DECIMAL HEXADECIMAL DESCRIPTION ---------------------------------------------- 6891498 0x6927EA JBOOT STAG header, image id: 0, timestamp 0x25000481, image size: 295211 bytes, ...
minto's user avatar
  • 531
10 votes
3 answers
2k views

GNU sort command does not sort words of different lengths with common prefixes correctly when using field delimiter

The GNU sort command is not sorting words of different lengths with common prefixes correctly for me, but only when using a field delimiter to sort on one of multiple fields. Here is the correct, ...
Ben McIlwain's user avatar
1 vote
2 answers
93 views

Where do I find documentation for the output of ls -l?

There have been multiple questions asked about this, like Understanding ls output, What are columns in ls -la?, What does 'ls -la' do?, What do the fields in ls -al output mean?, etc.. I've also come ...
TrisT's user avatar
  • 121
5 votes
1 answer
450 views

ls output display a file named "N'*" as "N'\''*"

System: Ubuntu 22.04.3 LTS GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) ls (GNU coreutils) 8.32 Situation: $ touch "N'*" $ ls 'N'\''*' "GNU Coreutils - Quoting File ...
yossi-matkal's user avatar
0 votes
3 answers
73 views

What is the maximum amount of files GNU core utils can split a file into in 1gb filesize each?

I want to know what kinds of limits i have . I saw it has a alphabet system a-z and then increment the second letter by 1 (xay -> xaz -> (havent seen but assume) xba -> xbb)
mean mean's user avatar
9 votes
1 answer
955 views

GNU Coreutils `\time --version` and `/bin/true --version` work but `\true --version` does not?

$ \time --version time (GNU Time) UNKNOWN Copyright (C) 2018 Free Software Foundation, Inc. ... $ /bin/true --version true (GNU coreutils) 8.32 Copyright (C) 2020 Free Software Foundation, Inc. ... $...
charmoniumQ's user avatar
2 votes
2 answers
135 views

Why is there manpage for sync(1) and sync(8) and how do they differ?

I see there are two different utilities in Linux manpages and I don't understand the difference. There is sync(1) and sync(8), and they look eerily similar. https://linux.die.net/man/8/sync https://...
Karel Bílek's user avatar
  • 1,961
0 votes
1 answer
67 views

Is there a command that makes another command "in-place"?

I find myself trying to "edit" a file in-place quite a lot in my shell. Say, I want to remove all lines in words.txt that contain the letter e. Then, I would execute: $ grep -v e words.txt &...
Lorenz Leutgeb's user avatar
0 votes
1 answer
75 views

What is the default behavior of GNU cp when copying from a symbolic link?

Can someone elaborate on this description in the official docs? When copying from a symbolic link, cp normally follows the link only when not copying recursively or when --link (-l) is used.
joe's user avatar
  • 53
1 vote
1 answer
144 views

Can I force numfmt to always output a number scaled to Kilo instead of the auto-scale?

Can I make numfmt output the input number scaled to Kilo even when it is in another range, like in this sample Giga? > LC_NUMERIC="en_US.UTF-8" numfmt --to=si --format=%.6f --suffix=Wh ...
user640916's user avatar
2 votes
0 answers
609 views

What is the exact source of Architecture info in lscpu command

Tl;dr I need to mock info about CPU architecture on the server for testing purpose. The only way that I can achieve it, is by changing info source about CPU architecture, that is used by lscpu command ...
mindgod's user avatar
  • 21
0 votes
2 answers
770 views

BusyBox's tar --exclude doesn't exclude

Extract a tar file with content dir1/dir2/file, using --exclude dir2 switch. The gnu tar excluded but busybox's tar doesn't. Use --exclude dir1/dir2 works fine, but why? Is there a way to exclude any ...
kkocdko's user avatar
  • 101
4 votes
2 answers
4k views

What precisely does cp -b (--backup) actually do?

Before you hit me with the obvious, I know, the backup option makes a backup of a file. But the thing is, the cp command in general backs up a file. One could argue a copy of a file is a backup. So ...
backslash enn's user avatar
3 votes
1 answer
2k views

How do I use modern coreutils on Mac?

How do I get modern coreutils on mac? I ran into this problem using csplit: foo.txt: foo 1 foo 2 foo 3 $: csplit foo '^foo$' '{*}' # error Double checking the manpage, man csplit, csplit on Mac is ...
Chris's user avatar
  • 983
-4 votes
3 answers
639 views

coreutils ls summary

Why is there no summary option in coreutils ls command, like MS-DOS/Windows has? With summary option I mean: count the files and dirs and sum up their sizes. Update: It should read: "Even DOS/...
bashianer's user avatar
  • 153

15 30 50 per page
1
2 3 4 5
16