Questions tagged [unix]
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.
4,008 questions
0
votes
1
answer
44
views
Copy piece of text from one file to another in console
Assume the situation: you are sitting at physical terminal which consists of display + keyboard, no mouse, of the machine with some modern UNIX-like system (assume one of: some Linux-based OS, FreeBSD,...
0
votes
0
answers
60
views
Why am I experiencing a Postfix virtual delivery service permission issue?
My Postfix server correctly delivers mail to external addresses.
However, internal addresses receive this error:
Aug 31 17:06:13 --- postfix/local[-]: -: to=<-@->, relay=local, delay=0.02, ...
2
votes
0
answers
92
views
Is it safe to symlink `/opt` and `/snap` to an external drive which is not always going to be connected at boot?
Nothing breaks when I symlink my Documents folder to the same drive, even with that drive not attached to my system. opt is short for ‘optional’, I’m told, so it shouldn’t break boot or anything. It ...
0
votes
0
answers
214
views
chmod and setfacl not working on samba share after mount
I want file permissions on mounted share to match the files stored on the server as well as allow the connected user to change them.
I needed smb3 unix extensions enabled to see the same file ...
5
votes
1
answer
651
views
Why are surrounding single quotes missing if output of ls -1 is passed to a pipe?
Scenario:
$ ls -1
'x y.pdf'
$ ls -1 | cat
x y.pdf
Here we see that surrounding single quotes are missing if output of ls -1 is passed to a pipe. Why does this happen? How to keep the surrounding ...
1
vote
0
answers
148
views
How to sync Unix passwords to Samba 4 on Debian 12?
How do I sync Samba passwords with Unix passwords so that if passwd command is executed then Samba passwords are updated to match a new unix password?
Problems:
unix password sync = yes updates unix ...
0
votes
0
answers
289
views
OpenVPN connection drops because keepalive does not work
I have Arch Linux with OpenVPN installed and I noticed the connection drops and restarts after the keepalive timeout.
With the keepalive ping of the .ovpn, connection drops from inactivity; with a ...
0
votes
0
answers
38
views
ddgr not showing relevant results
the number of search results is always limited to 10. even if I pass argument as 5,ddgr shows 10 results. would you please be kind enough to pass some examples of search results with number of results ...
2
votes
1
answer
259
views
Get Proportional Resident Memory (PSS) of processes on MacOS
I have been scouring the depths of the web in search of a way to obtain programmatically (No Activity Monitor) the Proportional Resident Memory (PSS) of processes on modern (Sequoia, Apple Silicon) ...
1
vote
1
answer
78
views
1st character is getting replaced when trying to insert character at the end of a line of a csv file - Unix Bash
I have a csv file (new_test.csv) with below contents,
202503,47330,2025,2022,1,0,0,1
When I tried doing this,
cat new_test.csv | while read line; do echo ${line}","; done
I am getting an ...
0
votes
4
answers
157
views
How to print all lines matching the pattern 1 and print only line with pattern 2 which is the line before line containing pattern 1?
Say I have two patterns (pattern 1 and pattern 2) Want to print all lines matching the pattern 1 and print only line with pattern 2 which is the line before line containing pattern 1:
eg: I have a ...
0
votes
1
answer
516
views
How to use WinRAR for Linux to verify rar archive files and print errors
I am using rar (WinRAR for linux).
How can I verify each rar file in a directory and print potential corruption errors to a log file?
I tried using -ilog[name] but rar does not even make a log file ...
0
votes
0
answers
94
views
Why does sudo -i -u fail to pick up the correct home directory?
On a fresh vast.ai instance configured with their pytorch template, I am trying to figure out why I can't create properly configured users. After doing useradd --shell /usr/bin/bash -m jason, the ...
1
vote
2
answers
456
views
How to use git diff-index --check in .git/hooks/pre-commit without "new blank line at EOF." error after you end files with new lines?
git ships with .git/hooks/pre-commit.sample.
I used the following commands:
cp .git/hooks/pre-commit.sample .git/hooks/pre-commit
sed -i'' 's/diff-index --check/\0 --ignore-blank-lines/g' ".git/...
0
votes
0
answers
739
views
rsync: [sender] read errors mapping "file" : Input/output error (5)
Everytime I try to copy a file from one USB disk to another one (does not matter which one),I get this kind of error :
mario@Z390-AORUS-PRO-DEST:/mnt/zroot-133/A_FILES/Backup/FreeBSD# rsync -avxHAXP ...