Bash not able to change file content [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
I have a strange issue.
There is file on which:
$ cat fp_id_led
1
$ echo 0 > fp_id_led
$ cat fp_id_led
1 <--- Still shows 1!
Also when I open the file in vim its just empty.
How can I flip that value in the file.

Probably the file is located not on a normal filesystem, but on a pseudo filesystem, like /proc?

Related

How can I get a list of all open named pipes in linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Is there a easy way to list all open named pipes on linux? O a bash command to show all open named pipes?
An option: you can use the lsof command line tool: https://www.simplehelp.net/2010/04/09/how-to-get-a-list-of-open-files-sockets-and-pipes-in-linux/

How to print the out put of dig command to a text file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I want to print the out put of the dig command to a text file .
Any Command in shell can be redirected like this:
Example:
dig google.com > k.txt

What does command cat /etc/group mean [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have used a command called 'cat /etc/group' what does this command mean and do.Can you tell me what each part of the command does please use simple terms.
You can find the answer to your question explained better than any of us ever could with this command:
man cat
It prints to standard output the contents of the file at the location /etc/group
Ok so cat outputs the file, which (in your case) contains basic info about groups.
If you are interested in what are the groups just click here

Standard contents of /etc/environment file in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm running Linux Mint 14 and accidentally replaced the contents of /etc/environment file. It was originally something like:
PATH=/usr/bin
but with some extra stuff. At the moment, most commands don't work in the terminal. If I do "ls", I get "command not found". Does anyone know the standard contents of this file is?
On ubuntu 12.04 it is:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

Delete folders irrespective of whether they are empty or not [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
How to delete folders using single line command irrespective of whether the folder is empty or non-empty?.. Any idea?
The rm(1) command has the flag -r for that. You should not use the -f flag with this command, unless you know what you are doing, as placing a wrong * or space can have you deleting a lot more than you intended.

Resources