Questions tagged [file-command]
The file-command tag has no usage guidance.
7
questions
2
votes
1
answer
1k
views
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 ...
1
vote
2
answers
276
views
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 *...
0
votes
0
answers
30
views
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)
2
votes
1
answer
11k
views
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)
...
0
votes
0
answers
33
views
pipe to file command [duplicate]
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 ...
4
votes
2
answers
87
views
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 ...
33
votes
8
answers
10k
views
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?
...