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.

Filter by
Sorted by
Tagged with
1 vote
2 answers
3k views

Postgresql unix domain socket with password authentication

It looks like postgresql supports either of the below Use tcp (i.e. localhost:5432) with password authentication Use Unix domain scoket (i.e /var/run/postgresql/.s.PGSQL.5432 ) with peer/trust ...
balki's user avatar
  • 127
0 votes
1 answer
187 views

bind symbolic link turning red post named restart

Need some help with bind-chroot We are running below version of bind and bind-chroot bind-9.11.2-lp151.10.1.x86_64 bind-chrootenv-9.11.2-lp151.10.1.x86_64 Our Automation code is running to add Zone ...
Harshith Mulky's user avatar
0 votes
0 answers
1k views

How can directories have only 1 hard link?

When doing ls -al, the second column (just after the permissions) is the number of hard links. For files, I find this clear. My problem is with directories. I read that it is not possible to create ...
Iyán's user avatar
  • 1
0 votes
2 answers
180 views

Where does the process accounting feature pull data from?

I recently discovered the process accounting feature in Unix systems. Basically it appears to be a legacy resource usage recording system that was just never removed. Since the dawn of time (actually ...
J.Todd's user avatar
  • 159
1 vote
1 answer
650 views

Cannot log in as user on OpenBSD

I have an OpenBSD 7.0 installation that has been running for a couple of days. I left it overnight and the computer was off in the morning: apparently there was a power problem. I solved that problem, ...
Thomas Hedden's user avatar
1 vote
1 answer
1k views

How do I prevent orphaned `sshd` processes on the server end?

I have a number of processes on client machines that ssh to server machines and do things. Sometimes those client processes end unexpectedly for whatever reason. This always leaves an sshd process ...
drysdam's user avatar
  • 113
1 vote
3 answers
292 views

What does the "cyg" prefix mean?

I've seen so many cyg prefixed things like cygstart, cygpath, cygwin etc., but what exactly does this prefix mean?
Wenfang Du's user avatar
1 vote
1 answer
450 views

Is there a way to search for Cygwin packages by command, and then download the package, and all its dependents?

I'm currently trying to use a program called Paml, in Cygwin but to initially configure it I need to use the "qmake" command in a Cygwin which as far as I can tell, seems to be part of the ...
Zerraphin's user avatar
4 votes
3 answers
398 views

How can I delete all files that have names not ending on exactly 2 digits?

I am currently trying to delete several files. I want to delete all files with file names that do not end on two digits (and when I say ending on two digits I mean it disregarding the .txt file ...
HaskellNoob's user avatar
0 votes
1 answer
488 views

Is there any way to map keys for hiding and showing bottom bar in Zathura?

I want to map keys so that pressing a button hides the bar in statusbar. Ctrl+n is working but I want to map it to another key.
tsjazil's user avatar
0 votes
0 answers
626 views

Why can't I log in to PuTTY as user, but only root

I'm trying to Split and format Disk on VM in Debian. I also need set file permision. My problem is that I can't log to the server through PuTTY as user, only as root. I entered same IP address as for ...
Petr Barabáš's user avatar
0 votes
1 answer
208 views

How to copy hidden file names to a text file in unix?

I have several directories which contain hidden empty files. I need the name of these file names themselves, so I need to write the filenames to a txt file. My script looks like this: cd /z/...
Fnechz's user avatar
  • 1
1 vote
1 answer
2k views

How to disable ssh non-interactive commands from the server side?

Currently I have a server with openssh7.1 installed, which supports non-interactive commands like : ssh user@server ls. Is there a way to disable such type of command on the server side?
cancantian's user avatar
1 vote
2 answers
980 views

Using DDrescue to Backup Local Disk on Corrupted vBox VDI

After some crafty, -guessing-, I finally got this command to create a local .img of a remote disk (vbox) that is failing. It work, -slowly-, but it works: ssh root@example ddrescue -d /dev/sda1 - | ...
mjones's user avatar
  • 307
0 votes
1 answer
55 views

What does two slasshes mean in a unix file system?

Here is my code: find ./ -name Desktop -type d .//Desktop find: .//Documents/Library: Permission denied Why two slashes following the period.? What does .// mean?I thought in Unix, the file system ...
jxhyc's user avatar
  • 553
0 votes
0 answers
73 views

How does the use of find command result in a permission denied error?

Please have a look at my code: apple@apples-MacBook-Pro ~ % find ./ -name Desktop -type d .//Desktop find: .//Documents/Library: Permission denied Would someone explain to me what does the second ...
jxhyc's user avatar
  • 553
0 votes
0 answers
564 views

How can I add a function inside my .bash_profile?

I need to use a modified grep function to find certain jobs on our cronjob repositories (cvs & git) in a more automated way. So I got these functions already made for that job, but not sure how ...
Gabe Saucedo's user avatar
1 vote
1 answer
1k views

Keep Color output with grep at systemctl status

I'm trying to get the original color of the output of this command with grep: sudo systemctl status telegraf | grep -e ● -e Active Output of command with this command the output is red, but i want it ...
Tobias2001's user avatar
0 votes
1 answer
337 views

UNIX Command on comparing two folder and delete the difference

I have two folder. I want to find the difference in the two folders and delete the difference. Using: diff -a folder 1 folder 2 | xargs rm -rf .
Master's user avatar
  • 1
0 votes
0 answers
11 views

Why does tailing logs with kubectl prevent pipe from producing output? [duplicate]

I'm trying to process logs while tailing them. This command works: kubectl logs "$pod" --tail=100 | egrep pattern | cut -d ' ' -f 1 But this command produces no output: kubectl logs "$...
Dmitry Minkovsky's user avatar
0 votes
0 answers
2k views

Change language debian 11 language from english to german

I've tried changing my system language from english to german,without reinstalling the operational system. I've basically run the command: dpkg-reconfigure locales as root. I got an error as root: ...
victor 0x3E7's user avatar
1 vote
0 answers
2k views

'cd' and other commands are very slow in my terminal

I am a new mac user and my zsh terminal takes a few seconds to open when I start it and commands like cd, docker ps, any git status take seconds to execute, while others like ls are super fast. Could ...
keinabel's user avatar
  • 125
1 vote
1 answer
315 views

Df -h stuck on solaris. How to stop it?

please help. I've got stuck when i type df -h df stuck image i'm try press ctrl + c and ctrl + z but not working . My os is solaris 11
user avatar
0 votes
0 answers
416 views

Suddenly no internet connection on WD MyBook Live

I have a WD MyBook Live NAS drive on a remote connection that has suddenly and inexplicably lost it's ability to access the Internet. It still has local network connectivity. I have RDP access to a ...
autobottodoggo's user avatar
1 vote
0 answers
62 views

Bypass `-C` flag when unzipping tar archive

I have a .tar.gz archive with the following structure: opt/client/py/utils/mappings/templates/config.json opt/ opt/mag/ opt/mag/sw/ opt/mag/sw/apps/ opt/mag/sw/apps/service/ opt/mag/etc/ opt/mag/etc/...
cristid9's user avatar
  • 111
1 vote
1 answer
969 views

How to find the first and last occurrence of date field in a log file in linux?

log_file: 2021-08-29 23:25:46,398 IST INFO :......mailslot_create: creating socket for querying route 2021-08-29 23:25:46,398 IST INFO :.....mailbox_register: no mailbox necessary for forward ...
bug24's user avatar
  • 11
1 vote
1 answer
1k views

How to extract all files from a tar.gz with same names, but different content without overwriting repeated files

My tar.gz has multiple files with the same name but each file having different content ex: a.csv, b.csv, c.csv, a.csv, d.csv, a.csv and c.csv. If I do tar -xvf filename.tar.gz | wc -l I'll get the ...
Sai Krishna's user avatar
0 votes
0 answers
33 views

Creating large number of simlinks

I have 335 pathes to same files (some with different names) DarkestDungeon/colours/default_colour_grade.png DarkestDungeon/dlc/735730_color_of_madness/dungeons/farm/colour_grade.png DarkestDungeon/...
Gribanov's user avatar
0 votes
4 answers
403 views

Is Shell a daemon?

A Linux daemon is a program that is started as part of the init process. It is not associated with a terminal. So almost all Linux systems which boot to run level 3 will wait for user to login at the ...
SRaj's user avatar
  • 115
2 votes
1 answer
1k views

tar extracting on root directory is destroying entire system

I'm not sure whats going on... I wasn't aware tar did this. But when I extract a tar on top of the root fs (/) with all the permission stuff turned off... for instance: root@system:~# tar --no-same-...
Sanchke Dellowar's user avatar
0 votes
0 answers
65 views

Unix: Unable to use find and mdfind unable to find my targeted file

So I am tring to find the path of a file using the find and mdfind command in terminal on my Macbook Pro. The result doesn't do what I exptected. Firstly, find command isn't able to find the targeted ...
jxhyc's user avatar
  • 553
2 votes
2 answers
10k views

Docker on WSL erroring: "docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?."

I'm working on a project for a paid internship at my school that requires that I install docker on a WSL ubuntu instance. However, after I follow the instructions from this page to install docker and ...
hexagonNoah's user avatar
1 vote
1 answer
935 views

How to split a file in specific size and pass that to the named pipe

I have a file of size 2GB and want to read that in chunks and pass each chunk to named pipe. Eg; mkfifo /tmp/pipe tail -c 200 myfile > /tmp/pipe & #last 200 bytes of file in the pipe. use the /...
Simplecode's user avatar
1 vote
1 answer
406 views

What does it mean to chown a directory non-recursively?

You can do either chown $user $path or chown -R $user $path. What's the difference when $path is a directory? The second invocation would also chown all files and directories inside $path recursively. ...
Noein's user avatar
  • 151
0 votes
1 answer
45 views

How to access UNIX-based device's directories?

I have a telecom device (EJOIN). I can access log files from device's admin console website (need to login with id and password) but files are in limited counts (5 is most). I can directly download ...
Cataclysm's user avatar
  • 133
1 vote
1 answer
210 views

Why do /dev/input/eventX permissions differ depending on how X server is launched?

I have a simple command line binary written in C on Debian that reads USB gamepad input on /dev/input/eventX and shows which gamepad buttons are pressed. I do this by opening and reading /dev/input/...
Synthetix's user avatar
  • 259
0 votes
1 answer
1k views

Where does Putty get the server host public key?

I'm logging into a Debian box and I get the security alert showing me the host public key. When I compare the full public key reported by PuTTY to the one in ~/.ssh/authorized_keys I find that they ...
Rob's user avatar
  • 95
0 votes
0 answers
1k views

How to change the working directory of all the panes in a tmux window

In using tmux, I generally like to keep each window dedicated to a specific service that I'm working on. I try to minimize the number of windows that I have open and so I don't want to just keep a ...
Bitsplease's user avatar
0 votes
1 answer
596 views

Using mv/cp to replace a invalid symlink with directory

I have a symlink at /tmp/bot which I want to replace with a directory. But I am getting error mv: cannot overwrite non-directory '/tmp/bot' with directory 'log' Steps to reproduce error # Create a ...
Pranjal Doshi's user avatar
2 votes
1 answer
5k views

How do I stop chrome remote desktop on Unix or prevent it running on startup?

I have an Ubuntu 20 VM on Google Cloud Platform. Mostly, I only need to SSH into the VM. However, very occasionally, I need to use a desktop environment. I am not particularly skilled with Unix. I ...
Fergusmac's user avatar
  • 141
-2 votes
1 answer
1k views

How I remove or erase ls -l | head -3 | tail -l to start over. What command I type?

How do I remove or erase ls -l | head -3 | tail -l to start over. What command should I use? Since my ls -l | head -3 | tail - l has double exit1.sh, exit2.sh.it isn’t same picture instruction
Cuong Nguyen's user avatar
0 votes
1 answer
42 views

Control sequence for upper case letter

I'm trying to improve my touch-typing which is very low both on accuracy and speed. I've noticed that I have a great difficulty regarding upper case letters. I often have to leave the home row or I ...
jacksonbenete's user avatar
1 vote
1 answer
130 views

Sun T5120 not able to boot from USB in ok prompt

I have downloaded the sol-11_4-text-sparc.usb, then changed the extension from .usb to .bin, and make it bootable. It is showing in ok prompt with show-disks commands but not able to boot with USB.
Altamus Aslam's user avatar
0 votes
1 answer
77 views

To deeply learn how my new Macbook works do I need to learn Unix? [closed]

I've been a Windows person since 1988 and I've bought my first Mac. Yeah thanks. I used to be tech support for Microsoft so it's horrible not knowing deeply how my new machine works. I understand that ...
Luke Puplett's user avatar
  • 1,601
0 votes
1 answer
44 views

Struggling with installing Audacious part 2

So I did install pkg-config just fine, I even saw signs that I installed it correctly. However, when I tried to compile Audacious again with cygwin, I get this message: Package 'glib-2.0', required by ...
brickblock369's user avatar
3 votes
1 answer
1k views

Chroot, Containers or Virtualization on OS X for safe development

I would like to provide a bit of context before asking my questions: I've been working on Windows/Linux for years, and recently I was having a good time with WSL2. My Windows machine isn't powerful, ...
jacksonbenete's user avatar
3 votes
2 answers
4k views

sudo kill -9 pid doesn't kill softwareupdated in mac

I have a process softwareupdated which is consuming lot of data. I just want to close the process as I dont want to update . I tried sudo kill -9 pid but it doesn't kill softwareupdated in mac. I keep ...
ASharma7's user avatar
  • 131
0 votes
0 answers
117 views

Including chmod in shell script - will it work for everyone?

I have a large wrapper.sh file which does a lot of things, but in the end runs catalina.sh tomcat. Problem is that users who run this wrapper.sh are experiencing error: no permissions to execute ...
Avaldor's user avatar
  • 101
0 votes
0 answers
97 views

Struggling with installing Audacious, which requires pkg-config

Title should be self-explanatory. I thought the pkg_config installation didn't give me errors at all, so I assumed it installed fine, but I got this error when installing Audacious. How do I deal with ...
brickblock369's user avatar
0 votes
1 answer
4k views

Unable to unzip multipart zip file

When I am unzipping a combined multi-part zip file, I am getting error : error: invalid zip file with overlapped components (possible zip bomb) Initially I thought maybe because of the special ...
djgcp's user avatar
  • 1

1 2
3
4 5
80