Questions tagged [write]
The write tag has no summary.
96 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
0
answers
119
views
Unable to write to client over ssh
Preface
I am unable to write to my client user connected over SSH. No issues with users on server.
I run as root, and SELinux is disabled for all the tests below(sudo setenforce 0). Yet, I always get ...
2
votes
2
answers
74
views
Unable to write to self in graphical terminal session?
Essentially, I noticed I am unable to write to my user who is using gnome-terminal.
tty returns /dev/pts/1, but I am unable to write there as root. Instead, it returns as follows:
myuser@pegasus:/$ ...
0
votes
2
answers
64
views
how to copy a HD to another if the CPU is freezing after a few GB?
how to copy a HD to another if the CPU is freezing after a few GB ?
I had to copy w11 of a friend notebook from a 128GB nvme to a 1TB nvme.
I put nvne128gb in a usb adapter and the nvme1TB inside the ...
0
votes
1
answer
46
views
dd cannot write to an ext4 HDD using oflag=direct
I attempted to write a file to an ext4 voulume on an external USB hard disk drive:
$ dd if=/dev/zero of=file bs=1M count=10 iflag=fullblock oflag=direct
dd: failed to open 'file': Invalid argument
...
0
votes
1
answer
102
views
How can I make writes to named pipe block if the reader closes, and vice versa?
Right now if I write to a name pipe and then close the reader, the writer gets a SIGPIPE and then exits. For example,
$ mkfifo pipe
$ cat pipe & # read from the pipe in the background
$ cat > ...
0
votes
3
answers
362
views
Append N hexadecimal numbers to a binary file with Bash
I have a Bash script that appends bytes written as hexadecimal values. I use echo to write the bytes and it works
hex="1F"
byte="\x$hex"
echo -en $byte >> "output.bin&...
1
vote
1
answer
71
views
Linux kernel phantom reads
Why if i write to a raw hard disk (without FS) the kernel also makes reads.
$ sudo dd if=/dev/zero of=/dev/sda bs=32k count=1 oflag=direct status=none
$ iostat -xc 1 /dev/sda | grep -E &...
0
votes
1
answer
2k
views
How can I get write/wall commands working as intended?
OS: xUbuntu 22.04
I want to use the write / wall commands for sending msgs to other users sharing the same computer.
But when I try to use the write command, I get the following error:
√ ~ $ who
user1 ...
0
votes
0
answers
84
views
Circular pipe situation
More of an academic/theory question - say I have process A piping into process B:
A | B
normally, the way pipes are designed, is if process A dies, the pipeline will gracefully shutdown. However, if ...
0
votes
0
answers
121
views
what size does stat return while write?
On Linux, suppose I do a write() to end of a file, and while this is still completing, from another thread I do a stat-type call on that file (such as fstat() or lstat()).
I would expect, that the ...
0
votes
1
answer
477
views
Does write(fd with O_SYNC) only flush data of THAT fd instead of all caches caused by other fds of same file?
I was using dd command to change a single byte of a block device(not the partition block device), such as /dev/nvme0n1, at a specific position (not managed by normal file).
dd of=${DEV:?DEV} seek=${...
0
votes
1
answer
119
views
Does the echo command create a swap file when it writes a line to a file?
I am currently working on a personal project, and I would like to simply record logs in the following way using the echo command.
My question is if the echo command accesses the same file at the same ...
1
vote
1
answer
377
views
Does rm -rf /mnt/ delete files in subfolders if you do not have write access to /mnt/?
I accidentally ended up with rm -rf some-text-folder-I-had-already-deleted-previously.txt /mnt/ because of arrow up into bash history.
My screen flashed with lots of subfolders that I actually do have ...
0
votes
1
answer
283
views
How does the Kernel implement synchronisation techniques on file access
I've read that the kernel implements synchronisation mechanisms when accessing files. For example, if we try and write or read to a file in the file system using read() or write() from different ...
0
votes
1
answer
206
views
Capture incoming terminal messages (write/mesg)
write allows sending messages to connected users terminal.
$ echo "hello budy" | write budy
This can become quite annoying when messages interfere with a terminal operation. A drastic ...
Jav's user avatar
- 1,030