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

Combine diff between binary files a.tar and b.tar, to a.tar on different machine to create b.tar

I have two binary files, yesterday.tar and today.tar on a machine-A. The two files should be pretty similar (I did hexdiff, and they look very similar). I have another machine (machine-B) with "...
0
votes
1answer
66 views

Where are the SquirrelMail Logs?

I am having problems sending mail using SquirrelMail. I asked the open source support for help and here is there response. What you need to do is look in your logs and show the error that is ...
0
votes
0answers
7 views

Control Yamaha Receiver from the command line [closed]

I want to control my Yamaha receiver from the unix command line of a raspberry pi. The solution should offer a way to put music into the playlist and to start playing. (From my phone I use BubbleUpnp ...
0
votes
0answers
19 views

having trouble calling functions in my code

I'm new to bash scripting and in this file I'm trying to clean up my code. The first one works perfectly. In the second one, I simply put code into two functions and call them within the case and if ...
0
votes
1answer
21 views

how can I show users who has only one session opened?

How do i find users who has only one session opened? I know I can find who has multiple session opened using: who | cut -d " " -f 1 | uniq -d
0
votes
1answer
22 views

how do I display the current users who logged into the system more than once?

So far I can list the names of the users who logged in. However, how can I display the users logged in more than once? finger | cut -d " " -f 1 | sort -u
0
votes
0answers
25 views

What Unix-like shell intrepreter uses a language besides english? [closed]

Are there any that use a natural language besides english or a shell that relies on symbols, etc.? Thus far, most of my experience using shells is with BASH. I'm aware you can use aliases and change ...
1
vote
1answer
64 views

How do I stop a script from finishing if certain text is printed?

I am trying to automate domain join but want to make it so you cannot run some commands twice. I am trying to stop the script if the domain is already joined. Printed text if domain is already joined: ...
0
votes
1answer
24 views

How does Iconv handle endianness?

echo hello | iconv -f ascii -t utf-16le | od -x produces what seems to me like a big-endian result 0068 0065 006c 006c 006f 000a whereas the same line without the 'le' produces, on a ...
0
votes
1answer
21 views

Command 'date +%W' does not return week 00

Manual page for date(1) says: %W week number of year, with Monday as first day of week (00..53) I assumed there exists a week number 00, and I handle such week in my program, but once I decided to ...
0
votes
0answers
53 views

Can `sudo` alone be used to switch to another given a password?

I am currently writing a program in Go and trying to implement a switch user functionality. However, I can't find a clean way of sending a password via stdin to su. sudo -S allows for stdin password ...
-1
votes
0answers
14 views

Need to understand the summary out of \time command on unix

Using \time command to time any unix command, I am getting data like below at the end. How should we summarize this summary in terms of memory and runtime. 648.37user 180.74system 19:19.55elapsed 71%...
0
votes
0answers
40 views

accesstime on macOS Catalina 10.15

Suppose you own a file system on a unix machine, and you would like to know which of the regular files on this system you have accessed within some interval. ("Regular file" means it is not ...
1
vote
0answers
12 views

Why can't Libreoffice on FreeBSD save to Google Drive?

There are instructions out there on configuring "Remote Files" in LibreOffice. However, in my case, the Google Drive is not among the available options. Indeed, the instructions say, ...
0
votes
1answer
25 views

Why do .sha256 hash files include asterisk before and after filenames?

I've seen .sha256 files for software such as: this_is_a_fake_sha256_hash_of_64_characters file_name.exe Or: this_is_a_fake_sha256_hash_of_64_characters *file_name.exe Or: ...
0
votes
1answer
36 views

How reliable is the randomness of the shuf command?

I ran the following command to generate 1 billion random numbers: time shuf -i 1-1000000000 > "SHUF TEST 1" To my surprise it was able to do this in less than 10 mins. I then ran the ...
0
votes
0answers
12 views

Generating initramfs file to a selected location

Today, when we want to generate an initramsfs file using the command dracut [OPTION...] the initramfs file goes to /boot directory by default. is there a way to change the default location of /boot ...
0
votes
1answer
31 views

Why does my bash script not navigate properly?

My final goal for this script is to: Visit folder in loop find the descriptor.mod Rename it to its folder name Relocate it to a specific folder repeat Currently, when I am trying to visit the folder ...
0
votes
0answers
20 views

'script' command doesn't print anything when started by systemd in TTY

General goal is: use rclone during shutdown for sync with cloud and modify its output a bit. I've created a systemd unit: [Unit] Description=Syncing with MEGA cloud storage v78 After=network-online....
0
votes
0answers
30 views

How to detect which process accesses a file?

I'm trying to reword this question: Is it possible to monitor which process accesses a given file/directory (on a Linux system)? Background: on a regular basis I'm detecting file access to a certain ...
1
vote
1answer
65 views

Send ctrl-alt-del over minicom

Is there a way to send key combos (namely a sysrq) over minicom? I'm looking to issue ctrl-alt-del to a box of mine so I can shut it down gracefully. Does this exist?
0
votes
1answer
34 views

how to scp from a PC in a local network to my PC inside my local network?

CONTEXT I have 2 PCs, PC1 and PC2, both are in the same local network, A, and both use Unix PC2 does stuff, and when it finishes, it transfers data to PC1 automatically via scp since PC1 & PC2 ...
1
vote
0answers
23 views

cp files from directories but abandon directory structure [closed]

As an example, I have this directory structure: src |- a \- 1 |- b \- 2 |- c \- 3 I want to copy 1, 2, 3 to something like this: dest |- 1 |- 2 |- 3 My idea is to write a bash script that ...
0
votes
1answer
25 views

Why tee writes to file content different from what it shows in console

I need to redirect all the output from cli app in alpine container to both - console and file, and then exit with that app exit code. As I have to use sh - I have found this solution on stack: ...
0
votes
0answers
17 views

IP alternative to bluetooth adapter for stereo set

I want to output my Windows laptop's audio to an old but great stereo set from the times before bluetooth and wifi. This works with an AEA2000/12 Bluetooth Adapter. In Windows I can select the ...
0
votes
1answer
122 views

macOS Console Vim Python3 Install

I know this question has been asked in many various forms, but I have not yet been able to get any of the answers to work. If anybody can point me in the right direction, it would be greatly ...
0
votes
0answers
31 views

Test if an unused port is reachable on a unix system

Imagine having an unix based system S1 - any common Linux distro with the most common out of the box setup - inside a network setup N1 which features a firewall F1 allowing some ports P1 and P2 ...
0
votes
0answers
57 views

/etc/udev/rules.d/70-persistent-txqueulen.rules - file not generated

I have executed the below salt command, it is working fine but the file is not generated (/etc/udev/rules.d/70-persistent-txqueulen.rules ) salt '*Sriov*' cmd.run "printf 'KERNEL==\"tap[0-9,-,A-Z,a-z]...
1
vote
1answer
44 views

Besides BSD and Linux, are there any other open-source Unix descendants currently in development? [closed]

This week I'm going to install every major BSD and Linux distro and learn for myself how they differ. Are there any other Unix open-source projects besides these two ancestors that I should consider ...
0
votes
1answer
34 views

FTP Server file download issue

I am trying to download a from FTP server from Unix command prompt but getting "Connection closed by remote host" exception. Same exception I am getting while trying from Window command prompt as ...
0
votes
1answer
36 views

Converting linux file to folder

On my CentOS , i was on the following directory:- /home/coolcatg and that directory contain a website folder named "public_html". I simply copied that folder to /home directory :- [root@server ...
1
vote
0answers
25 views

sorting out files to different directories from a main directory

I have numerous files I am trying to move from a main directory in to separate directories which have multiple sub-directories inside. Example file naming conventions 1SA_1BA_1W.out, 2SA_3BA_3W.out, ...
1
vote
2answers
54 views

Can I use bash brace expansion in for loop?

I have some files in directory: touch dir1/dir2/bad\ name{1..4}. I would like to move those files (bad name1 - bad name4) from dir2 to dir1, as well as rename them at once. Because these files have ...
0
votes
1answer
536 views

SSH config explanation: Could not resolve hostname: nodename nor servname provided, or not known

I recently came across this ssh config file in one of my projects: ~/.ssh/config Host git-codecommit.*.amazonaws.com User my-aws-user IdentityFile ~/.ssh/id_rsa Include config.d/* ~/.ssh/...
0
votes
0answers
20 views

How to open a link from Unix straight up to a browser

In my understanding of how this kind of thing should work, is in 3 steps 1. Specify the browser, and then next appended 2. Run 3. Prompts the browser and a tab with the link specified What I've tried ...
0
votes
1answer
46 views

root filesystem is full at 100% and not able to extend the voulme due to the same

I am not able to extend the file system / root which is currently at 100% and I have tried to add a additional volume at os level Even "vgdisplay" gives the error: /etc/lvm/cache/.cache.tmp: write ...
1
vote
1answer
36 views

Why do some applications return if already running, and otherwise block?

When using a command line to open multiple tabs in a GUI application, often the first command blocks (waiting until the application is closed) but the subsequent commands each return immediately (...
1
vote
1answer
35 views

Command line: merge and keep all info from the two files

How to merge and keep all info from the two files as such ? $ cat file1.txt apple cool dude flan $cat file2.txt apple ball cool dude elephant for a result as such : $cat ...
0
votes
1answer
209 views

File Clash in Union Mount Filesystems

I am doing some reading on Union Mount Filesystems from the following source: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.386.8972&rep=rep1&type=pdf Here's a snippet from the ...
0
votes
0answers
14 views

Linux account will no longer let me edit or create files

I was editing a file and Instead of typing ZZ to save and exit I typed something else by mistake. I think it might have been either ctl-z or ctl-c . Anyway it ended up abending the vi session. When I ...
0
votes
0answers
33 views

killing a process through .sh file

I'm on windows and using MobaXterm to practice UNIX shell scripting. When i just write kill 7232 it kills the process, but when I write it inside a .sh file and then execute the file, it says: ./first....
2
votes
1answer
73 views

When setting up an SSH tunnel user, authorized_keys directive “command=” blocks “permitopen” (Ubuntu 19.10)

I'm trying to set up a user account in Ubuntu 19.10 that can only set up a tunnel for port forwarding on a specific port (9229). I've created the user with a minimal home folder (just a .ssh folder ...
0
votes
0answers
38 views

How to prepare disk for installing Kali Linux on MacBook

I want to install Kali Linux on my MacBook Pro 2016 as dual boot. So I prepare my disk for Kali as on screenshot but I can not see this space when I am installing Kali. So how can I choose my disk for ...
0
votes
0answers
14 views

Fedora boots up without showing other GRUB boot options

Until recently I had Ubuntu 18.04 and Windows 10 installed with Rufus. I decided to uninstall Ubuntu and install Fedora with a Yumi multiboot USB. I installed Fedora, and when I turn on the computer ...
0
votes
0answers
18 views

Deleting Files and directories on a Solid State Drive (fdisk, dd, rm)

I have been reading for a while on how rm, fdisk and dd work. I wasn't able to fully understand their source code however. Let's assume I would like to delete my /dev/nvme0n1p3 partition and the files ...
0
votes
2answers
50 views

How to increase /home space in Debian?

I'm using Debian OS. In this VM my home folder space is full so I allocated extra hard disk space of 120 GB. Now total available space is 220GB. By editting the Vm setting, i expanded the harddisk ...
0
votes
1answer
45 views

ACLs on macOS: ACE “deny delete” on macOS with APFS broken? File not writable in GUI

Since the UF_NOUNLINK Unix flag is actively being thwarted by macOS, I was thinking about using a self-made shell script to achieve a similar functionality with an ACL, namely to prevent accidental ...
0
votes
2answers
43 views

Speeding up find command result with folder exclusions

I have the following folder structure: Approvals_Share 1 CUST APPROVAL 2 LICENSE APPROVAL CANADA INSCRIBE z-remove There are multiple subfolders and illustrator files “.ai” inside ...
0
votes
0answers
41 views

Dual Boot: Can disabled tools be re-enabled after the dual boot is complete?

I'm a little new to linux. I notice on some dual boot tutorials they'll ask you to disable several things in order to proceed with the dual boot steps. For example if you have windows pre-installed, ...
0
votes
0answers
50 views

fstab mounting samba share - weird permissions/apparmor problems

Using a Proxmox VM, the network share is an LXC container in the same network. The mounting and the accessing works perfectly fine. I can see the files and have read/write access. Whenever I user "...

1
2 3 4 5
77