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
0 votes
2 answers
11 views

Unix: How to Exit Out of "/" directory?

I am learning some elements of the Unix environment myself. I have tried to search up this question but perhaps I am not wording it correctly. It is quite possibly a very trivial question, too, but I ...
user avatar
0 votes
1 answer
50 views

How to change permissions for a file in Ubuntu?

I run the file ./schema.pg.sh with the command sudo ./schema.pg.sh in /sql directory. But the terminal throws an error: could not change directory to "/sql": Permission denied Script I am ...
user avatar
0 votes
0 answers
24 views

Understanding valid filenames for Windows, Macintosh, and UNIX/Linux [closed]

Synopsis I am coding a `ResourceFunction` in Wolfram Mathematica which will validate filenames but having difficulty finding official sources or given rules are presented somewhat vague. Windows ...
user avatar
0 votes
0 answers
14 views

Mac OS Monterey - Node.js application leaking - why do I need to clone it in new directory?

I'm really dumbfounded about this. I'm developing a Next.js web application (library on top of Node.js). Somehow the application started leaking (I suspect the culprit being the react-markdown package ...
user avatar
  • 185
0 votes
1 answer
18 views

Sorting the list of subnets as Integers ascending

I have a list of subnets for eg. 180.151.96.0/22 180.151.240.0/21 119.82.112.0/22 203.122.29.0/24 203.122.48.0/22 119.82.92.0/24 180.151.108.0/23 119.82.124.0/24 119.82.89.0/24 180.151.17.0/24 119.82....
user avatar
  • 17
1 vote
0 answers
36 views

Troubleshooting "Connection closed by authenticating user andy 173.63.60.32 port 11706 [preauth]"

As noted in the title, I am having trouble connecting to a remote server through ssh. I am trying to connect a Windows machine to a server running CentOS. I have been using PuTTY on the Windows ...
user avatar
  • 111
0 votes
2 answers
29 views

Accidentally made an alias for a pre-existing command on OS X

I was toying around with aliases and made an alias to take me to the directory where I store all my bash projects via the cd command. However, I used 'bash' as a name for the alias. Now when I run all ...
user avatar
0 votes
1 answer
37 views

Inodes in External Disk full. Actually not

Checking inode usage: [cold] > df -ih . Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sdb1 59M 59M 7.9K 100% /home/doom/cold Here we see 100% Inode usage. 59 million inodes ...
user avatar
0 votes
1 answer
65 views

How to do a recursive filename `find` from the shell using a glob pattern with "set braces"

From the shell, I'd like to recursively search a directory for a given glob pattern. But I want to use set-braces-syntax in my pattern: find ~/path/to/dir -name '*.{h,m}' Here I'd like to recursively ...
user avatar
0 votes
0 answers
24 views

What are the keyboard shortcuts for Xpad?

What are the keyboard shortcuts available for Xpad? I know they exist, because I put my note into overwrite mode without the insert key, and alt+Up/Down conveniently moves lines of text. There are ...
user avatar
0 votes
1 answer
22 views

How to remove everything between quotation marks in Unix

How do I remove everything between and including single quotes in Unix/Linux? Example: Input : WHERE EnodeB_Fin Date_Time_Fin >= '2022-03-15 00:00:00' Output : WHERE EnodeB_Fin Date_Time_Fin &...
user avatar
  • 1
0 votes
0 answers
40 views

How to recover a corrupt G.726 audio file?

I have an old audio file in g726 format, which I last opened three computers ago. It appears to be corrupt -- ffmpeg rejects it with Invalid data found when processing input... It is not all zeros, so ...
user avatar
0 votes
1 answer
18 views

unix, vi editor, copy and paste, not pasting first lines

I am performing the below steps. Looks like I am not able to copy and paste into vi editor on unix with #!/bin/ksh as the first line. I pasted the code I need in but I do not see that in first line in ...
user avatar
  • 117
0 votes
1 answer
74 views

simple bash script for collecting logs

I'm new with BASH scripting and I need a little help if it's possible. Let's say there's a UNIX server from which I want to gather some simple log events (let's say .txt files). Let's say log events ...
user avatar
  • 1
1 vote
1 answer
32 views

Does the slave pseudoterminal use the line discipline?

According to this article: the line discipline instance is not evoked when the TTY driver is sending user program output to PTY master and the accompanying diagram. However, according to a different ...
user avatar
0 votes
1 answer
32 views

Removing Duplicate from File

I have two files fileA and fileb FILEA 1.1.1.1 2.2.2.2 3.3.3.3 4.4.4.4 5.5.5.5 FILEB 4.4.4.4 2.2.2.2 Output should be 1.1.1.1 3.3.3.3 5.5.5.5 Size of File A is around 60GB and Size of File B is 1GB ...
user avatar
  • 17
0 votes
0 answers
14 views

How to remember custom firefox perpx setting when external screen is attached?

I'm using MacBook Pro and ok with default layout.css.devPixelsPerPx setting (= -1). When DELL U2719D is attached I change that to 1.2 to make elements bigger. The problem is 1.2 makes elements tiny ...
user avatar
  • 1
0 votes
1 answer
49 views

Why can't I ping db from a unix machine on windows?

I have a windows machine, with ubuntu on it, where I run docker, in which there is a container I need to connect to db. But the problem is already between windows and ubuntu. If I ping the db from ...
user avatar
0 votes
2 answers
77 views

UNIX/Linux: What's the file permission number?

When I ask for file permissions on a Windows-10 WSL Ubuntu app, I do: ls -ltra And I get information like: -rwxrwxrwx 1 scampsd scampsd 42034 Mar 29 15:26 Filename.cs drwxrwxrwx 1 scampsd scampsd ...
user avatar
  • 1,438
0 votes
1 answer
189 views

IntelliJ quits abruptly in the Apple M1

I use Apple M1 and IntelIJ keeps shut down often when I login into the computer in the morning and I need to restart the app. Also, sometimes the IntelliJ just freezes and I need to force quit to ...
user avatar
  • 439
0 votes
0 answers
31 views

Execute a program with a sequential list of files

I have a list of files with titles like the following: file_0.10_180.0degrees.txt file_0.15_180.0degrees.txt file_0.20_180.0degrees.txt file_0.25_180.0degrees.txt where the files can be passed in as ...
user avatar
0 votes
1 answer
38 views

How to compress the main folder which includes certain sub folder using tar

Assume we have a folder structure as below main_folder - sub_folder1 - sub_folder2 - sub_folder3 - valid_folder1 - valid_folder2 - junk_folder1 - junk_folder2 ...
user avatar
0 votes
0 answers
39 views

Debouncing events in `fswatch` or other file monitors

Tools like fswatch allow to run a program after file changes. Is there a unix command to wait for, say, one second without changes before it fires in case there was a change before that ? right now my ...
user avatar
  • 437
0 votes
1 answer
56 views

Equivalent of /dev/full on OSX

I want some special file which throws an error when I write to it. /dev/full does that on Linux. I don't care too much about the specific error.
user avatar
  • 6,003
0 votes
0 answers
57 views

chmod 000 permission macOS

I'm trying to change the permission of a test file on my Mac using the command chmod. Everything is ok except for the user permission that doesn't change. How can I fix the problem? I have already ...
user avatar
1 vote
3 answers
388 views

BeyondCompare doesn't ignore difference in line endings (DOS/UNIX)

I am using BeyondCompare 4 on Windows 10 to compare two directories with thousands of files. They are the basically same, but one exported from Windows, and another one from Linux. The only difference ...
user avatar
0 votes
0 answers
63 views

How to List all files that are readable by public on linux/unix

I used the following command: find . -mindepth 1 -maxdepth 1 -type f -perm -444 but the files with permission 777 are also readable by public. Many permissions enables public to read files. So how to ...
user avatar
0 votes
0 answers
7 views

Uploading an image from my computer to html on Emacs

I am making a website through Emacs on PuTTY on my personal server. I am trying to upload an image to the site with img src. Would I have to upload the image to my PuTTY server first? And if so how ...
user avatar
1 vote
0 answers
69 views

How to forward a remote UNIX_AF socket to a local port with ssh

I'm trying to forward a remote UNIX_AF socket to a local port through ssh, but it fails with the message: Warning: remote port forwarding failed for listen path /path/to/sock I tried to run ssh user@...
user avatar
0 votes
1 answer
50 views

Change the ownership of all files & folders based on search result

I know how to find all the files & folders owned by a specific user, say tommy: find / -user tommy But how can I chown the files & folders to another user, say peter? I know I can change ...
user avatar
  • 1,028
0 votes
1 answer
41 views

Where is my PATH?

When I run the following command, I see several paths and all looks well. echo $PATH However, I want to find out where these paths are stored. I have looked for ~/.bash_profile and ~/.zshrc but they ...
user avatar
0 votes
2 answers
316 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 ...
user avatar
  • 107
0 votes
0 answers
11 views

Is there a way to install Unix packages and tools in an env, similar to how Conda works?

When working with Python projects, I can use Conda to create new environments in which I can install all the libraries I need for that particular task. This way, when I finish the project, I can ...
user avatar
0 votes
1 answer
30 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 ...
user avatar
0 votes
0 answers
210 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 ...
user avatar
  • 1
0 votes
2 answers
23 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 ...
user avatar
  • 159
1 vote
1 answer
128 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, ...
user avatar
0 votes
1 answer
122 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 ...
user avatar
  • 103
1 vote
3 answers
94 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?
user avatar
0 votes
1 answer
49 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 ...
user avatar
0 votes
0 answers
25 views

Increase the number of ssh connection for non root user (CENTOS)

We are using a linux machine in which the direct root ssh access is disabled using "PermitrootLogin No". So we have created a non root user and we do ssh using that username. But we are not ...
user avatar
4 votes
3 answers
153 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 ...
user avatar
0 votes
1 answer
25 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.
user avatar
0 votes
0 answers
122 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 ...
user avatar
0 votes
1 answer
96 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/...
user avatar
  • 1
-1 votes
1 answer
174 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?
user avatar
1 vote
2 answers
272 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 - | ...
user avatar
  • 215
0 votes
1 answer
28 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 ...
user avatar
  • 399
0 votes
0 answers
39 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 ...
user avatar
  • 399
0 votes
0 answers
61 views

Compare/convert FTP MDTM time with/to date format

I have a Perl script that download files from an FTP site on this location/format: /A/B/2021_10.txt, the script will only download files depending on the date that is on the filename (for example ...
user avatar

1
2 3 4 5
79