Search Results
| Search type | Search syntax |
|---|---|
| Tags | [tag] |
| Exact | "words here" |
| Author | user:1234 user:me (yours) |
| Score | score:3 (3+) score:0 (none) |
| Answers | answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
| Views | views:250 |
| Code | code:"if (foo != bar)" |
| Sections | title:apples body:"apples oranges" |
| URL | url:"*.example.com" |
| Saves | in:saves |
| Status | closed:yes duplicate:no migrated:no wiki:no |
| Types | is:question is:answer |
| Exclude | -[tag] -apples |
| For more details on advanced search visit our help page | |
Results for 0
Search options not deleted
-1 votes
1 answer
311 views
How to change all files in directory creation/modification date to 0/0/0?
I want to change all files in directory creation/modification date to 0/0/0. I tried to use find $PWD -exec touch -m -d '0/0/0' {} + command. …
4 votes
1 answer
3k views
Linux Permissions UID 0 vs Ring 0
'Explain the difference between running in ring 0 on x86 and running as UID 0 in Linux. Give an example of something that each one enables, but the other does not.' … My current understanding is that ring 0 on x86 is the most privileged OS level and that kernel code is run in ring 0. UID 0 is the linux superuser that can essentially run anything. …
4 votes
1 answer
533 views
Raid 0+1 Failure Cases VS. Raid 1+0
I have heard that RAID 1+0 is more fault-reliant than RAID 0+1, because a secondary drive failure is more likely to cause data loss in RAID 0+1 than RAID 1+0. …
2 votes
1 answer
685 views
How to map Linux hard drive identifiers like "sd 3:0:0:0:" to ones like "ata8:"? [duplicate]
In my kernel log, I can see entries like: [ 0.765510] sd 3:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) and when something fails, it's usually something like: [ 6007.433977 …
2 votes
4 answers
24k views
How to enter the condition to check 0 or more than 0 in case
I am trying to use case to run this function if [[ $input -gt 0 || $input -eq 0 ]]; Is it possible to put in case to test the input for greater than 0 or equal to 0, or even 0 and less than 0, in case …
-2 votes
1 answer
329 views
Why will "0.0u 0.0s 0:00.00 0.0% 0+0k 0+0io 0pf+0w" display on screen in csh [closed]
friends, I don't know why "0.0u 0.0s 0:00.00 0.0% 0+0k 0+0io 0pf+0w" (and many lines like this) will display when I run some C shell script, but not when some others run. …
0 votes
0 answers
2k views
siginfo_t si_pid =0?
I'm using a signal handler with siginfo_t field for gathering some informations, if the field si_pid is 0 it means that the sender of the signal is the same who receives it? … Example: Process 1 sends SIGALRM, Process 1 signal handler's output relative to si_pid equals 0, this means that it's like Process1 is doing raise(SIGALRM)? …
0 votes
1 answer
2k views
Python result Code 0
The first is the id that i want to store the second is a 0 and i guess its the result code. … This is my code import os cmd = "/path/to/ctl so list | tail -1 | awk '{print $1}'" event_id = os.system(cmd) print(event_id) and this is the result: 225 0 how can i delete that 0. Thanks …
9 votes
2 answers
38k views
Linux kernel parameters: what is the difference of net.ifnames=0 and biosdevname=0
I find that centos7.8 is using "net.ifnames=0" without "biosdevname=0" in its kernel parameters, the result seems be same: I got traditional nic name such as eth0. … Just curious, what is the difference of "net.ifnames=0" and "biosdevname=0"? …
0 votes
1 answer
1k views
Working of the [0-9] [duplicate]
I am learning the shell commands and came across the short tags eg.[0-9],[[:digit:]] etc.. … the directory 0.txt and 9.txt and it deleted the files 0.txt and 9.txt .I guessed that the expression [0-9] is expanded and then read as 0.txt 1.txt 2.txt .... …
4 votes
2 answers
2k views
Why does bc exit 0 when dividing by 0?
I was suprised to discover that although it does generate a runtime error, the exit status is still 0: $ echo 41 + 1 | bc 42 $ echo $? … 0 $ echo 42/0 | bc Runtime error (func=(main), adr=6): Divide by zero $ echo $? 0 Why does the bc utility not fail with a non-zero exit status? …
0 votes
1 answer
724 views
Bash variable echoing 0
When the RESULT variable receives an empty value it does not echo "-1", it returns a 0. Why does bash turn the empty value into 0? …
2 votes
1 answer
505 views
ss exit code always 0
I'm tring to use ss but it seems to always produce 0 as a exit code , also if the expression is nor matched. … On this host I've a service listening on port 53 , it matches and has exit code 0 $ ss -ntl sport = :53 ; echo $? …
0 votes
1 answer
4k views
Awk substr index 0
I just discovered that substr() in awk accepts either 0 or 1 as the initial index in a string. … For consistency with the documentation and with the fact that index() returns 1 for the first position and 0 for no match, it would be good policy to always use 1. …
2 votes
3 answers
259 views
Replace all 0's if all row is 0, NA and 1
My question is like this: I want to check all the rows from the 4th column till the end whether the field values are only 0 (formatted as 0.00) , 1 (formatted as 1.00) or NA, and if so replace the 0 values … = 1 { for (i = 4; i <= NF; ++i) { if ($i = "0" || $i= "1") { $i = "0.01"; } } } { print $0 } Thanks in advance! …