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
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
38 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
33 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
15 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
16 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
33 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
25 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
41 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
33 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
34 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
44 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
113 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
18 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
34 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
208 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
30 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
45 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
33 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
13 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
41 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
42 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
42 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
36 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
36 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 "...
0
votes
0answers
24 views

Create an FTP account for user “app_user” and when the user logs into the system you should not be ask for password

So, I have got a task. I have already created the FTP server and created the user app_user and I already assigned the password to that user. Now, I have to go to the client box and connect to the FTP ...
0
votes
0answers
57 views

Passing username and password via a single shell command

The command I am running failed to enter the password correctly sudo ssh username@servername "echo test test| dsmadmc" And I get this error: IBM Spectrum Protect Command Line Administrative ...
32
votes
3answers
4k views

Confused by “groups” and the Linux “permission model”

So I am trying to understand the concept of groups and permissions in Linux, and am thoroughly confused. On my laptop, where I am the sole-user and thus super-user, I understand what it means to ...
1
vote
1answer
62 views

How to pad a text file in Linux with extra linefeeds at the end of every line?

I would like the pad every line of a Linux text file with a space (newline character, etc). For example, if I have a file containing the following lines: line01 line02 line03 I would like it to ...
0
votes
1answer
45 views

how to compare the all the files from different IP adress in linux

I have two servers say 123.567 and 789.012 (just for example) and in that servers we have many folders and scripts. I like to change the mail ID (ex, sai@xxx.com) to another mail ID (ex, prudhvi@xxx....
0
votes
1answer
41 views

how to count the number of occurrences of a word in different files? -BASH

I have files like raw_data_0, raw_data_1... raw_data_7 every file contains below data record_count=1 emailCountFailure=0 record_count=1 emailCountFailure=0 record_count=1 emailCountFailure=0 ...
1
vote
1answer
26 views

How to delete the subdirectory content and files present inside directories without deleting the subdirectory?

How to delete the subdirectory content and files present inside directory? I don't want to delete the structure of subdirectory, just want to delete the content inside the subdirectory and files ...
0
votes
0answers
207 views

Is there a way to check data usage per app on Linux?

In Windows 10 I can get to this screen: It tells me the data usage of each process so I can identify which programs are using the most data (opposed to just the total bytes tx/rx for all traffic in ...
0
votes
1answer
36 views

The -r flag for directories seems to be useless now [closed]

cp, scp, rm and other command needs to the -r flag to perform an action on a directory, compared to just a file. can't copy a directory because WHOOPS you forgot the -r flag I don't feel this is ...
0
votes
2answers
118 views

Bash- Return a value from child process to parent

I am using the below code record_count=0 task() { while read -r record ; do record_count=$(( record_count + 1 )) ..... done < $1 } for i in {1..5}; do task $i & done how can i use the ...
0
votes
0answers
16 views

Mysql does not recognize correct password; attempting to reset it resulting in error messages in terminal

I installed mysql recently, and when entering my password in the -u root -p format I have received the error message indicating my password is incorrect. I read the 5.7 Reference Manual for ...
0
votes
1answer
69 views

How to find all files,with substring, e.g. xyz (caseinsensitive) in filename within particular type (*.txt) using linux command line?

I have some bunch of files, which has "xyz" in the filename, This "xyz" can be case insensitive, e.g. "XYz" or "xYz". Wish to display all possible combination of the files in from current working node
0
votes
2answers
77 views

Write a shell script to replace phone number from a file

I have a file called test.txt and the content of this file is: cat test.txt abc,123456,india dfg,78910,china abc,893948,japan abc,892389,australia I tried using the below shell script, but I'm ...
0
votes
0answers
121 views

“0: Event not found” when using less command in unix

First ill mention my knowledge in unix is less than basic. I see "0: Event not found" when I open a new terminal, I couldn't find where it happen but it also mess up with the automatic aliases ...
0
votes
1answer
71 views

How to close a Terminal window using bash and AppleScript without using SystemEvents?

Background I am trying to create a script that when executed, opens a new Terminal.app window executes the desired commands and closes the window when complete. One solution was to use SystemEvents ...
0
votes
0answers
31 views

throw-away Windows installation to work on hardware hackathons

I'm a UNIX dev, but sometimes there are interesting hardware-related hackathons that require using useless Windows-only SDKs in order to participate fully; this would also require USB access, too. I ...
0
votes
1answer
83 views

How to copy nested folders to multiple destinations? (unix, bash, mac)

Given a folder structure, such as: /Parent-Folder /Child-Folder /Child-Child-Folder ... How do I copy/paste all child folders to a list of destinations, such as: Dest Folder/ Dest Folder2/ ...
1
vote
2answers
1k views

Bin folder for Windows 10

I'm trying to replicate a UNIX bin folder on my Windows 10 PC. I have created a folder located at "C:\bin" and added it to my PATH variable. However, I'm not really sure as how to implement it any ...
1
vote
1answer
118 views

So i modified my sudoer file and now sudo hangs and I can't change it back

I was having fun messing around in terminal when suddenly, I messed up my sudoers file in /etc/. Now the sudo command hangs and I am not able to change it back. I would rather not reset my computer ...

1
2 3 4 5
76