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
0 answers
24 views

MSSQL Server working on RH9 or Centos9

Has anybody running mssql-server on RH9 or Centos9? I got this Error when trying to setup: Red Hat Enterprise Linux 9.2 (Plow) Capturing core dump and information to /var/opt/mssql/log... Hint: You ...
Michael Siegmund's user avatar
1 vote
2 answers
29 views

Unix cat and zip together

What I'm trying to do seems simple enough, but I can't get it to work, nor can I find anything on Google referring to how to do this? I want to first cat a bunch of files, then zip the resulting file ...
bk_32's user avatar
  • 123
1 vote
1 answer
70 views

Find command in IBM AIX

I would verify that files in the location listed may not have both the other-write and any execute permissions set. This requirement to be applied recursively to files contained within subdirectories. ...
medisamm's user avatar
0 votes
2 answers
31 views

Does the unix words file change over time or between systems? [closed]

Is the Unix "words" file (e.g at /usr/share/dict/words) pretty standard? I.e, can I generally rely on, for example, the 200th word in the file to be the same word between a fedora and an ...
Him's user avatar
  • 296
0 votes
1 answer
164 views

SSH to AWS EC2 instance hangs

I was able to log in to my ec2 instance via ssh few days ago. But somehow today when I connected it with ssh -i something.pem ubuntu@ip_address -v then the terminal hung on this line: debug1: Local ...
zxcisnoias's user avatar
0 votes
0 answers
56 views

Problem while trying to create a new virtual machine

I am trying to install a virtual machine in my computer, I have windows 10. I installed virtual box and I created a new machine, when I try to start the machine, it says : unpacking failed: write ...
user avatar
1 vote
1 answer
70 views

Unix/Linux "shutdown": How to prevent wall message and terminal blocking?

I'm making a script that adds a layer of functionality on top of the shutdown command. It's intended to schedule a shutdown a while into the future, and sends out it's own wall message. How do I ...
user avatar
0 votes
0 answers
41 views

Why are not all my files included when I gzip a directory?

I know this is a question that has been asked before, for example here Recursively count all the files in a directory, but this is driving me crazy. Let me explain: I have a directory called "...
Mathias's user avatar
  • 101
0 votes
1 answer
139 views

setfacl: How to give user permission to a dir for existing and future files?

OS: debian:bullseye (docker image). What I am trying to do: I have a websockets server that creates a unix socket and listens on it. I am trying to set up nginx in front of this. I am trying to set up ...
agnivesh's user avatar
5 votes
1 answer
152 views

Unix script with a trap inside ssh

My plan is to write a script to debug a remote web server. Since the debug port is blocked by the firewall, I need to forward the remote port via ssh to my local machine. This part is working fine. ...
Johannes von Zmuda's user avatar
0 votes
0 answers
61 views

Batch file using WinSCP won't execute UNIX shell script that assigns variables to output of "more" command

I am working with a Batch script that uses WinSCP to transfer files from an UNIX machine to a windows machine. To achieve this, WinSCP has to call shell scripts on the UNIX side. There is one shell ...
Tony E's user avatar
  • 1
0 votes
0 answers
167 views

Strange ln Login item

I was going through my login background tasks and saw the following: Not sure why ln would have a startup task. As far as I know, that's just the link command from Unix. Clicking the info led me to ...
Jack's user avatar
  • 101
0 votes
1 answer
80 views

Need to iterate Backwards in a linux/unix path

I have a script that would have multiple paths (folder names). Each folder path would have a Dockerfile, but its uncertain at what level that file would exist. Lets say my path is "v1/airflow/1....
Mohammed Ali's user avatar
0 votes
0 answers
123 views

How do I upload a file from the command line to satisfy a Dropbox file request?

Context: I have a problem with some software that I am using. I contacted the software's tech support and they said they could run their pipeline themselves to see if they can see something differen. ...
Jeff's user avatar
  • 101
0 votes
0 answers
29 views

tcptraceroute is working but telnet got timeout

I'm trying to telnet public server using specific interface. # telnet -b 10.144.238.192 google.com 80 Trying 142.251.42.14... telnet: Unable to connect to remote host: Connection timed out If I test ...
manus's user avatar
  • 23
0 votes
0 answers
23 views

Mapping a MAC address of a Level2 switch to a name

With brctl showmacs br0 I can get a list of all the MAC addresses found on a bridge. To make this more human-readable, I translate the output by replacing the MAC addresses with hostnames (for fixed ...
Bram's user avatar
  • 197
1 vote
1 answer
45 views

Getting an error when trying to create a tarball of my Redhat VM

I'd appreciate some assistance as to where I'm going wrong please. Ultimately my objective is to have Redhat available via Windows Subsystem for Linux. Reading the instructions on the following ...
user20960947's user avatar
2 votes
0 answers
309 views

Understanding MCE errors on Linux

I got an MCE hardware error on Linux. I used rasdaemon to log all errors. Here is what ras-mc-ctl --errors prints me 41 2023-01-03 10:50:51 +0100 error: Corrected error, no action required., CPU 2, ...
Jakub's user avatar
  • 21
1 vote
1 answer
30 views

Linux, centos, resetting password

While resetting password after commands: rd.break mount -o remount,rw /sysroot chroot /sysroot I entered new password all done correctly at the end created file reliably using touch /.autorelable ...
Mohamed Ramadan's user avatar
0 votes
1 answer
25 views

vim create a binding so that pressing "Shift I I" writes python import statements

I want to create a binding so that pressing "Shift I I" writes python import statements. I think it should be a map, like this: :map <S-i><S-i> ... I'm not sure how to map my ...
kilojoules's user avatar
1 vote
0 answers
35 views

Removing Desktop Images on MacOD

How do I remove the solid colors folder in the desktop images directory? A simple ‘rm -r mydir’ won’t work. It seems as though the permissions don’t allow you to delete that folder. There’s got to be ...
user avatar
9 votes
1 answer
1k views

How can I use a VPN to access a Russian website that is banned in the EU?

I am a lover of a Russian website. And recently the EU put a ban on it. They say it is because of the Ukraine war. So I registered a Russian VPS and installed an OpenVPN server on it (using a popular ...
Mikke Mus's user avatar
  • 333
0 votes
1 answer
92 views

tar: samtools-1.9.tar: cannot open: no such file or directory

I am trying to run the command to install samtools on ubuntu but I am facing a problem here whenever I try to use tar. Input : /c/Users/Hamza Bilal$ tar -xvf samtools-1.9.tar.bz2 The Output I get ...
Talia's user avatar
  • 3
1 vote
0 answers
31 views

UNIX command find starting directory .*

Can you explain what does the following UNIX command find does? find .* where .* - starting directory. I know "." is current directory, but cannot find the explanation about ".*".
StaceyKosheen's user avatar
0 votes
0 answers
100 views

File auditing in macOS - check which process deleted a folder/file

After macOS minor upgrade of Monterey I've noticed that a directory of mine has been deleted. is there a way to check in retrospect which process deleted my directory ? I know of fs_usage, but it's ...
osxUser's user avatar
  • 153
0 votes
1 answer
36 views

Cannot remove a symlink recursive

During a delete of a backup, somehow the rm -rf got stock and couldn't delete a symlink. Now, my folder looks like that: $ ls armips-master # folder $ cd armips-master $ ls armips $ readlink ./armips ...
Sisyffe's user avatar
  • 11
1 vote
1 answer
581 views

How to send and receive an UNIX datagram with socat?

I need to send a UNIX datagram to an open port in a running application with socat. When the application receives the datagram, it will answer back with another. I need to do this to get the resulting ...
Pablomagno's user avatar
0 votes
1 answer
26 views

Continuous Open-File-Handle Monitoring in Unix

In Unix do you know of a way to do continuous open-file-handle monitoring? I know of lsof, which has a maximum sampling rate of 1s. However, I'm looking to do the exact same thing except continuously, ...
user2279952's user avatar
0 votes
1 answer
21 views

Can anyone assist me with this script?

I'm having trouble with having the following command options -s and -f display what I need them to. The parameters are being recognized fine. #!/bin/bash defaultPath="/etc/passwd" ...
Eikan1126's user avatar
0 votes
1 answer
194 views

UNIX or Linux sort: only sort on the first part of an entry

I'm working on a complicated grep, something like grep -E -i "first|next" *.txt, and I get results like: logs.10.txt:2022-10-07 10:33:05.6673 | ClassName | [Info] | Inside function first(), ...
Dominique's user avatar
  • 1,931
0 votes
1 answer
25 views

file system permissions for samba share

I have an issue with file system permissions when using samba on my raspi. It worked previously, then it stopped working. I suspect something with the file system. It is about the folder /media/usb/...
Klaus Breyer's user avatar
0 votes
0 answers
56 views

No BIOS boot options

Today out of the blue, I encountered the following problem: whenever I turn on the pc, it goes directly to the BIOS instead of opening GRUB. The problem is that it doesn't show any drive in the boot ...
Federico Fusco's user avatar
0 votes
1 answer
22 views

Is it defined to use pax across filesystems?

If I wanted to backup a *nx system, am I correct that going across filesystem boundaries would be a no-no? Would utilities like pax properly handle the jump across them or do I avoid it? If avoid it,...
Adrian's user avatar
  • 592
-1 votes
1 answer
252 views

Getting “scp: Target is not a directory” when trying to upload files from desktop to a remote Unix directory

I’m trying to upload a file from my desktop to directory2/ on my university's Unix server. I tried doing this: scp /Macintosh HD/Users/myname/Desktop/filename.c myusername@server.name.ca:/directory1/...
samsam's user avatar
  • 1
1 vote
0 answers
296 views

How to mount NAS volume via. Terminal /command line without additional prompts on OSX

I remotely manage a Mac Mini at home when I am away. We also have a Synology NAS that I use for various additional storage and backups. Sometimes, if there is WiFi or internet issues, the Mac Mini ...
SkRevo's user avatar
  • 11
0 votes
1 answer
80 views

Output to stdout and external txt file

I am trying to redirect the stdout of a particular output to a txt file, however I would still like to view it in the console log tail -f /var/log/kern.log | ./prsfwlog -f elfs/prs_log.elf | \ grep -E ...
Nir's user avatar
  • 1
1 vote
0 answers
106 views

Attempts to Zip files by date not working as expected

I am trying to zip up a bunch of files, but only those created on a certain date. I'm trying to use the -t option, but it's not finding the files that I can clearly see are there. This is a sample of ...
bk_32's user avatar
  • 123
0 votes
0 answers
106 views

Does it make sense to use the local entries (Unix domain socket) of pg_hba.conf in Windows?

I have a rather simple question. As stated in the pg_hba.conf file in the postgres data directory: # DO NOT DISABLE! # If you change this first entry you will need to make sure that the # database ...
s.k's user avatar
  • 141
-1 votes
1 answer
266 views

Recover data from broken wd hard disk by replacing the head

I have a broken wd hard disk, see this link for the detail status: How to use dd to backup "WD My Passport" on Ubuntu Because it is not allowed to ask more than one question in the same post,...
stackbiz's user avatar
  • 113
0 votes
0 answers
52 views

How to remove and reset the GTK-warning where it shows unable to locate theme engine in module path?

how should I remove this warning and reset it to the default theme engine. If so which file to do so in? GTK-warning
Callum Ormond's user avatar
0 votes
1 answer
99 views

how to make Google Drive put files in old directory (~/Google Drive/) instead of new directory (~/Google Drive/My Drive/)

Background I am using Google Drive for Desktop on two Mac laptops. Both are running "Catalina" (MacOS 10.15). I would like to be able to sync between them and have the filepaths be the same ...
Alex Roberts's user avatar
0 votes
1 answer
169 views

How to use dd to backup "WD My Passport" on Ubuntu

My "WD My Passport" has problem when connecting to Windows 10, it may have hardware error. I have set a password for the "WD My Passport" with WD Security long time ago. Windows ...
stackbiz's user avatar
  • 113
1 vote
2 answers
1k views

Cannot boot Qubes after successful installation

There is a problem with booting Qubes 4.1.1 after installation marked by installer as successful. The validity of the image is confirmed and hardware requirements should be passed. SETUP [docs] Intel ...
Pozzi Userpic's user avatar
0 votes
2 answers
433 views

Setting environment variables using eval - by calling other shell script

I have two shell scripts Caller and getGlobalParameters. There is a function defined in the getGlobalParameters script which calls a java class and uses the values returned by the java class to set ...
Sachin khot's user avatar
0 votes
0 answers
85 views

How to encrypt files so that root cannot view them?

I have a powerful linux server with lots of CPU+RAM which sits around idle 99% of the day. I have a friend who has some financial models that he runs on his laptop for 2 hours a day. I want to invite ...
CaptainCodeman's user avatar
2 votes
0 answers
58 views

are page tables under utilized in x86 systems

I was recently looking at the page table architecture in x86 and x86-32 machines. x86-32 paging architecture: x86-64 paging architecture: In x86 for example, we use 10 bits as offset into the page ...
deepak arumugam's user avatar
10 votes
5 answers
7k views

Why a fork is often followed by an exec?

Why "a fork is often followed by an exec"? Can't you just create a new process in UNIX?
alexander.sivak's user avatar
0 votes
0 answers
36 views

Source alias from script

I'm having difficult in passing alias in shell script. Basically I want to execute script once alias is executed. As per my understanding, alias will create sub shell and I cannot run rest of script #!...
user17745726's user avatar
0 votes
0 answers
12 views

How to alias "pip install" to "python -m pip install"? [duplicate]

I always seem to get problems when trying to install python packages using just pip install. Meanwhile python -m pip install never fails me. However, I have a hard time remembering this longer command ...
Nermin's user avatar
  • 101
0 votes
0 answers
283 views

How do you download something using wget and the download URL when the web page requires a checkbox ticking?

I want to download some data. On the web page where the download is, there is a box that needs checking to confirm that the terms have been agreed before allowing this download. When I try to download ...
MelParker101's user avatar

1
2 3 4 5
80