Questions tagged [file-command]
7 questions
33
votes
8 answers
Why doesn't the command "ls | file" work?
I've been studying about the command line and learned that | (pipeline) is meant to redirect the output from a command to the input of another one.
So why does the command ls | file doesn't work?
file input is one of more filenames, like file…
IanC
- 951
4
votes
2 answers
creating a file with the content of a folder
Is it possible to create a file which contains the information (the contents) of a certain folder? For example:
cat /folder >> file
I also tried
touch /folder >> file
I should add that I need the folders and their folders and files in a recursive…
Sam
- 715
- 1
- 5
- 9
2
votes
1 answer
why is pid number so large and what is running `file` command?
I've got Ubuntu 20.04.2 on good hardware with Mate and all updated packages.
The process identifiers (pid's) are in the 800,000's after only 7 days of uptime.
how do I determine which process is launching so frequently to cause PIDs to get so…
Marc Compere
- 848
2
votes
1 answer
file: symbol lookup error: file: undefined symbol: magic_setparam
My file command is broken.
$ file
file: symbol lookup error: file: undefined symbol: magic_setparam
$ which file
/usr/local/bin/file
$ ldd $(which file)
linux-vdso.so.1 (0x00007fffc43fd000)
libmagic.so.1 => /usr/local/lib/libmagic.so.1…
ArtBIT
- 142
1
vote
2 answers
How to add .sh extension to script files in Linux
I have a dozen of files without extention, and I need to add .sh to all the files are a script Bourne-Again shell.
How do you achevie that without using sed, awk,...
I located the files like so:
file * | grep "Bourne-Again shell"
With the command…
kaileeno
- 11
0
votes
0 answers
pipe to file command
I wanted to know the bitness of a certain software (omc), so I ran first
which omc
file /usr/bin/omc
and that gave me all information I needed.
Before telling my colleagues, I wanted to shorten it to a single line:
which omc | file
but that…
matth
- 153
0
votes
0 answers
why more file_name command runs on an encrypted file? I thought "more file_name" command would ask for a password
----encrypts a file using
gpg -c file_name.
more file_name
---Outputs whats in the file.
(Why the file is not secured)