Questions tagged [coreutils]

formally GNU Coreutils is a set of basic utilities from text, files and shell utilities. Most of the Unix-like OS contains this package. Question about any of the utilities of the coreutils should use this tag.

Filter by
Sorted by
Tagged with
0
votes
0answers
55 views

problem wit /us/bin/env

I have kotlin script (but it can be any linux command with arguments) for example: #!/usr/bin/ls kotlinc -script println("hello world") When I run it in ubuntu I get: /usr/bin/env: ‘kotlinc -...
0
votes
0answers
41 views

users and who return no usernames

Strange thing happened today. I went to look up who was currently logged in on a box using the users command and it returned nothing. It didn't even return my username. The particulars are below. I am ...
4
votes
2answers
229 views

multiple forms of sum in core utilities

Upon reading GNU Core Utilities - Wikipedia, I find multiple sum me@alpha:~$ cksum nohup.out 4104911401 101860700 nohup.out me@alpha:~$ b2sum nohup.out ...
0
votes
2answers
34 views

mesg return 'is y'

Upon issuing 'mesg' me@alpha:~$ mesg is y The manual states NAME mesg - display (or do not display) messages from other users Does this means that someone hacked my machine and leave a ...
0
votes
0answers
36 views

How to get possible CPUS in Ubuntu 14.04 or 16.04

I have a process which is pinned on core 1. I have written the below function to get the affinity. count_cpu_cores() { long int n_cores; n_cores = sysconf(_SC_NPROCESSORS_CONF); if (...
0
votes
1answer
672 views

What is the difference between cut’s -b and -c option?

I've searched online for examples, went through the reference manual of the cut command and tested it myself and remain unsure about the -b flag. There aren't any clear examples as to how the cut -b ...
15
votes
4answers
3k views

Use sleep with minutes and seconds

I know how to use sleep 5m for 5 minutes. How would I use it for say 7 mins 30 seconds?
0
votes
1answer
1k views

How can I change the default date format (using LC_TIME)?

How do I change the format of date command by modifying LC_TIME in locale? Currently the day of month uses %e format. I need it to be displayed in %d format. Below is the Current Format: #date Thu ...
0
votes
0answers
291 views

Ubuntu Cannot reinstall coreutils

I deleted the usr/bin/env file in my Ubuntu16.04 by mistake. Everytime i try to reinstall coreutils with this command: sudo apt-get install --reinstall coreutils, i get this error: Reinstallation of ...
0
votes
1answer
53 views

Different versions of `sync` tool

There are two man pages about the sync tool: (1) http://man7.org/linux/man-pages/man1/sync.1.html NAME sync - Synchronize cached writes to persistent storage SYNOPSIS top ...
1
vote
1answer
2k views

Install env command

I want to use env, but Ubuntu tells me it is not installed. If I try to install it, Ubuntu tells me there is nothing to do. How to fix this? $ env The program 'env' is currently not installed. You ...
0
votes
1answer
700 views

how to compile the sorcecode of the offical ls.c source code?

I downloaded the official ls.c source code and tried to compile it with gcc. The problem was that the gcc showed me a lot of errors. $ gcc ls.c -o ls ls.c:38:20: fatal error: config.h: I did fix a ...
0
votes
1answer
84 views

Inconsistence between CLI command and nautilus units

So it seems nautilus/Files and other software are using the SI units to display file size for some time now, in ubuntu. But this is rather inconsistent with cli command like ls, du,and df that still ...
8
votes
4answers
3k views

How can I have mkdir cd into the newly-created directory? [duplicate]

Frequently, I type these commands in bash: mkdir something cd something I almost never do this: mkdir something ls # something in the current directory, not ./something/ And never this: mkdir ...
8
votes
2answers
6k views

lint: command not found

Does Ubuntu have a lint utility? How is it installed? In computer programming, lint is a Unix utility.. https://en.wikipedia.org/wiki/Lint_%28software%29 thufir@mordor:~$ thufir@mordor:~$ gcc ...
2
votes
1answer
2k views

How to replace GNU core utilities with Busybox

I was wondering: is it possible to replace the GNU coreutils with Busybox in Ubuntu? Is that safe? Could I replace something else (like binutils and bash) with Busybox? How much free disk space would ...
8
votes
1answer
3k views

How to upgrade coreutils from 8.21 to 8.24 in Linux Ubuntu 14.04?

I want to use the 'progress' status option with dd which is available with coreutils 8.24 up. Ubuntu 14.04 (Trusty) has coreutils 8.21 and the current (stable) release for coreutils is >8.24. I wish ...
112
votes
7answers
167k views

Is there a way to create multiple directories at once with mkdir?

If I wanted to create multiple directories (on the same level) and then feed it a comma seperated list of directory names (or something to that effect)?
1
vote
1answer
2k views

I can't get the `cp` command to work

In the terminal, when I issue the cp command, it states: The program 'cp' is currently not installed. You can install it by typing: apt-get install coreutils But when I try to install it, I get the ...
6
votes
5answers
7k views

how do I check coreutils version?

How do i check the version of coreutils? gnu coreutils says they are at version 5. Im sure Ubuntu is a variation on that. I tried: info coreutils File: coreutils.info, Node: coreutils invocation, ...
3
votes
1answer
1k views

Copying multiple files with progress

I want to be able to copy multiple files from multiple USB flash disks at the same time, being able to see current transfer rate of each simultaneously. It is part of performance testing for USB port ...
1
vote
1answer
1k views

How to repair missing GPG public keys for packages

Earlier today I was removing VirtualBox, and when removing its public key, I accidentally instead of putting the key ID, put the fingerprint: sudo apt-key del 7B0F AB3A 13B9 0743 5925 D9C9 5442 2A4B ...
30
votes
4answers
5k views

Why wouldn't the `which` command work for `cd`? I can't find the executable for `cd` either!

I tried which cd and it didn't give a path but instead returned the exit code 1 (checked with echo $?). The coreutil cd itself is working, so the executable should be there, right? I also ran a find ...
5
votes
2answers
9k views

how to make a static binary of coreutils?

I'm trying to make a static binary of rm, so I tried compiling coreutils with configure; make SHARED=0 CC='gcc -static'; make install but I keep running into errors. First make complains about c99 ...
2
votes
3answers
3k views

Why is /bin/true such a large file? How would I find the source code?

I just found out about /bin/true yesterday. I'm not a bash power user by any means, but I decided to check it out. I was surprised to find that it is a 22K file (Ubuntu 12.04), and not one of the ...
1
vote
1answer
736 views

Does mv ignore the letter case by default?

I'm trying to change only the case in the filename and getting the error: ayakovlev@ubuntu:~/host$ mv crc32.hpp CRC32.hpp mv: ‘crc32.hpp’ and ‘CRC32.hpp’ are the same file Is it any setting ...
-1
votes
1answer
4k views

cp: invalid option — '/' [closed]

I am trying to recover my encrypted folder by using ubuntu live cd, I have done all the steps now all I want to do is to copy my /tmp/ecryptfs.bM59alvG to /home/ubuntu/myfolder directory. I am using ...
1
vote
1answer
3k views

How can I install a debug build for coreutils?

I am trying to install the debug build for coreutils package which is not available. I also went through this link and followed all steps but I still can't see a debug package for coreutils on doing ...
1
vote
2answers
274 views

rm file '??q:q '

I accidently created a file named ??q:q and i can't remove it. rm '??q:q' or rm '\?\?q\:q' (To escape the ?) says No such file or directory Another interesting thing: in ls it shows the name as ??q:...
5
votes
2answers
496 views

rm -I to prevent accidental rm

I just created alias rm="rm -I" to prevent from accidental rm command. -I prompt once before removing more than three files, or when removing recursively. Less intrusive than -i, while ...
5
votes
4answers
14k views

`rm -rf ` and `rm -r` have the same results

Bear in mind that I just learning bash so please explain in moderate terms. rm -rf and rm -r appear to do the same thing. The tutorial (https://help.ubuntu.com/community/Beginners/BashScripting) ...
2
votes
2answers
469 views

Is it possible to uninstall the 'programs' rm, cp and mv from the system?

I can't see how this would be useful, but I'm really interested. Is it possible to uninstall the programs rm, cp and mv?
1
vote
1answer
257 views

Change TimeStamp display in terminal

When I do a ls -al the timestamp display is Month date time - would like it to be yy/mm/dd or just know WHERE to modify this? I also cannot edit dconf-editor. - that shows %l:%M %p when I try to ...
74
votes
5answers
67k views

Difference between 'dir' and 'ls' terminal commands?

I've been trying to find the difference between using the dir and ls commands in terminal. I know ls is the traditional UNIX method of viewing the files in a directory, and that dir is the windows ...
6
votes
2answers
5k views

What does `ls --author` mean?

What exactly means ls --author It really returns writer of a file or owner? How to set author for a file? I have to implement this part (ls --author), so need to know what exactly it is.
409
votes
7answers
1.0m views

What does “cp: omitting directory” mean?

I've issued the following command: sudo cp ~/Transfers/ZendFramework-1.11.4-minimal/library/Zend/* ~/public_html/cmsk.dev/library/ When I do this, I start getting the following messages: cp: ...
326
votes
18answers
495k views

How to show the transfer progress and speed when copying files with cp?

Otherwise, is there any alternative command line utility that can achieve this?