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 have got a Linux task that finishes and prints:
[6]- Done
I have noticed that in the past it would print:
[6]+ Done
Is there any difference between + and -?
man bash states:
In output pertaining to jobs (e.g., the output of the jobs command), the current job is always flagged with a +, and the previous job with a -.
Therefore, the command with '+' is the most recent command sent to the background.
Related
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 am confused with how shuf command works with streaming input. Does it buffer the data? Or is there some way of doing this in an online fashion.
This tool reads either a file, or from the linux/unix stdin. There is no streaming.
When you do just do shuf on the command line, you will have to press CTRL-D at some point to tell it "input is complete". Only then the tool starts processing the data.
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.
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 am looking for a command in bash to change the last modified and created timestamp to be changed to present time.
How do I do it using shell command/script?
Thanks!
touch will update the access and modification times (or only one of the two with -a or -m respectively).
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 want to use the command "at" to schedule a job to run at one second (or minute/hour) later. If using "-t" option, then it involves with the hassle of getting the current time etc. Is there any easy way out?
But don't suggest me to use "sleep", because the current process will exit.
Thanks for the tip.
The at program can take now+ a time unit (e.g. now+1minute) as a timespec. You won't get finer time resolution than one minute with at.
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
How can I block someone from spamming by console using the "write" command in unix.
Run the command mesg n. Preferably, add it to your .bashrc or equivalent so it runs when you start up.
In your console, type:
mesg n
For more information, read the manual pages (man mesg).