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

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

Related

How to print the comand line of some linux process [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
I want to print the command line of the python process currently running on my machine, I tried things like this:
ps -A|grep python|awk "{cat /proc/$1/cmdline}"
but I seem unable to understand how awk works... I wanted a single line to make an alias, but you can suggest a better way
Thanks!
pgrep -af python
thaks to #Aaron and #markp-fuso for the help!

Linux command needing translating [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 5 years ago.
Improve this question
I have just started learning the Linux system and I need some help to translate the following to English:
grep WARNING readme.txt
and
grep WARNING readme.txt > warnings.txt
This is a homework question that i have researched myself but having trouble learning exactly what it means.
thanks in advance.
Try making a file on your computer named readme.txt. Put some lines of text in there, and make sure that some lines say "WARNING" while other lines do not.
Then run your first command and observe its output.
Then run your second command and observe its output and observe what was written to warnings.txt.

How to what program each logged in user is executing 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 6 years ago.
Improve this question
What command line would give me a list of programs each logged in user is executing for a Linux server using bash?
You can use the w command for this.
As #ivanivan mentioned, a more complete listing can be accomplished using ps, usually coupled with grep to filter out what you don't want.

Linux rename command but for dynamic values [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 7 years ago.
Improve this question
I have files on a Linux server for example:
2103acc.001.lob
2507acc.002.lob
2222acc.021.lob
1210acc.051.lob
I would like to change them to:
2103acc.pdf
2507acc.pdf
2222acc.pdf
1210acc.pdf
I cannot performo
rename .001.lob .pdf *.lob
because those are dynamics number
Can someone write me the solution?
Thanks
This regexp should remove digits followed by .lob and replace with .pdf:
rename -n -v 's/\.[0-9]+\.lob$/\.pdf/' *.lob
Once you're convinced you have the right pattern, just remove the -n (dry-run) and let it run properly:
rename -v 's/\.[0-9]+\.lob$/\.pdf/' *.lob
Ixer missed a * in his answer, so i added it:
rename -n -v 's/\.[0-9]*\.lob$/\.pdf/' *.lob

Bash not able to change file content [closed]

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?

Resources