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
12 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 ...
0
votes
0answers
41 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 ...
0
votes
1answer
56 views

mv: cannot move, Permission denied in WSL

I'm getting mv: cannot move, Permission denied error, but before claiming this is a dupe, please see what I've tried first: First of all, it has nothing to do with file or directory mode: $ mv -f ....
0
votes
0answers
8 views

Inter-Process Communication: Stream data from single writer process to multiple reader processes

tl;dr - I want to stream text data from one writer process to multiple reader processes. I'm thinking of using a file to achieve this. Is it a good idea? Using a file would avoid having to maintain ...
0
votes
0answers
9 views

Is there a way to check if audio is being output from Mac?

Short and simple: Is there a way to check if there is audio being output from the Mac? via audio jack, usb-c, or bluetooth? Or are there any processes which are active if and only if audio is playing? ...
0
votes
1answer
16 views

Rsync creates empty folders

I have following directories. My goal is to compare OLD vs NEW directory and save the different files in the DEST directory: OLD/ ...src/ ...src/config.js ...test/ ...test/main.js NEW/ ...src/ ......
0
votes
0answers
10 views

Parse .xml device tree using lshw

I want to query information about the hardware details of another machine that is given to me in form of an .xml file created with sudo lshw -xml > lshw-output.xml. To display memory related ...
1
vote
1answer
37 views

What makes a new command line (i.e. user@machine:~/directory$) appear in the terminal?

I am writing a Python program and when I interrupt this program, it unfortunately prints lines after the new dollar line has been printed. It looks something like this: [INFO]: Program finishing... ...
2
votes
1answer
110 views

What is meant by “don't run processes as root in a chroot environmentl”

I read several articles that say one should avoid running processes as root in a chroot environment since it allows the process to escape. But how should I do that? Chroot can only be evoked by root, ...
1
vote
1answer
21 views

how to replace commented line with sed

I want to replace below line with sed so I am trying below command which is giving me error "sed: -e expression #1, char 59: unknown option to `s'" I have not known to sed much can you guys ...
0
votes
1answer
17 views

Is there a way to make Unix diff -r compare only differences in filenames, but not check if any single file actually differs?

I need to compare two large directories with a lot of files in them. I tried using: diff -r Directory1 Directory2 but unfortunately the process is really slow due to the amount of files and their ...
1
vote
1answer
35 views

Understanding umask

I have the following task: What are the rights if you create a file file1 and a directory dir1 and used umask 026 before? Now use umask 233 and perform the following: cat file1 > file2 mv file1 ...
0
votes
0answers
22 views

brace expression is not working in HP-UX environment

I need to create multiple directory. But when I use following command it is not working - RUN1 ,RUN2,RUN3 mkdir RUN{1..3}
1
vote
1answer
47 views

After automatic PuTTY login, getting only dollar sign as shell prompt in terminal

When I am doing automatic PuTTY login from Windows bat file, after login command prompt is showing only dollar sign in UNIX terminal. But when I am doing manual login in PuTTY, after login, it is ...
0
votes
1answer
84 views

ZTE F660, /bin/sh: Access Denied

I have a problem with my router ZTE F660, V5.2.10P1T22S (btw same problem with F609). If I do telnet from device which is connected directly to the router (LAN/WiFi) - I get full telnet access. But if ...
0
votes
0answers
79 views

rsync delete files during transfer

I currently run rsync --remove-source-files -P. I am transfering a file of about 5TB. This means that significant storage space is wasted at the later parts of the transfer, as the server I am copying ...
5
votes
4answers
12k views

“PuTTY key format too new” when using ppk file for PuTTY SSH key authentication

I wanted to connect to my Unix server using SSH keys. For that I had converted my id_rsa file from ./ssh directory to a ppk file using PuTTYgen, but after loading my .ppk key I get this warning: ...
0
votes
0answers
42 views

why physical memory NOT contiguous?

Background: I was running a kernel module that give me some info about kernel virtual address space which told me that Linux lowmem region is approximately 7.24 GB. lowmem region is supposed to be a 1:...
0
votes
0answers
14 views

file permissions when user belongs to multiple groups [duplicate]

Let's say user A belongs to g1 and g2. I have a directory D that belongs to group g1 with the permissions 707. Can user A perform any actions on directory D? If not, can you elaborate why, please? ...
0
votes
0answers
16 views

Unable to decompress file with gzip

I have a file called myfile.dat.gz that I need to decompress. I have been trying gzip -d myfile.dat.gz, but this results in the error gzip: myfile.dat.gz: invalid compressed data--format violated. ...
0
votes
1answer
11 views

Why does node report old version despite having installed NVM and latest LTS, when asking as root through sudo?

Before installing NVM and latest LTS Node for foo user: foo@ubuntu: which node /usr/bin/node foo@ubuntu: node --version v12.22.1 After having installed NVM and latest LTS Node: foo@ubuntu: which node ...
0
votes
0answers
9 views

What meanas first field in etc/inittab?

I can not figure out what is mean "null" on the beginning line in file /etc/inititab? null::sysinit:/etc/init.d/rcS Can anybody help me?
0
votes
0answers
18 views

Get Characters up to the last given pattern

need help. I want to get all the CREATE statements on a file until ; but the only problem if there is a ; in the comment.. so I need to get the CREATE statement until the ); pattern... .... CREATE ...
0
votes
1answer
25 views

Shell Script : Take filename as an argument and on a standard output display the contents of the file with line number prefixed to it

So, I'm new to shell scripting and I'm trying to write a shell script which takes filename(.txt) as an argument and displays the line number prefixed with each line on a standard output. This is the ...
0
votes
0answers
13 views

Can't run any useful commands in terminal

I recently found an Arcom Viper at an auction specifically a VIPER-400-M64-F32 with an ICE enclosure. Upon connecting to the device through its COM port using putty I am greeted with this screen From ...
0
votes
0answers
29 views

Is it possible to rearrange files and directories within a file using Unix and if so, how?

I've seen code allowing the names of files to be rearranged within a Terminal window but I'm wondering if by using Unix code it is possible to alphabetize or sort files and directories within a folder ...
0
votes
0answers
131 views

Package “No match for group package” when attempting to switch to Fedora 33

Hello I want to switch from Fedora 32 to Fedora 33 using the following commands: sudo dnf upgrade --refresh sudo dnf install dnf-plugin-system-upgrade sudo dnf system-upgrade download --refresh --...
1
vote
1answer
66 views

unable to connect to wireless connection

Look at this question in Unix SE. You may tell me to ask the question in a more appropriate community. But, this is not a easy question for me. When I was searching on Internet I didn't get any ...
0
votes
0answers
15 views

How to make another user by default in kali nethunter 2021?

i want to change the default user in kali nethunter, but i don't know how. I already added the user in kali nethunter so i want to change default user from root to my user.
0
votes
1answer
14 views

Sorting a text file based on data before the first comma

I have the following text file that contains rows in a format of [Number,IP address] and want to sort it based on the number portion. I tried using the command sort -r -k 1 -t"," Input.txt &...
0
votes
1answer
38 views

Why find is giving inaccurate responses for 1M and 1G size?

Why find is giving inaccurate/weird responses when I try to look for files that are 1 megabyte size or 1 gigabyte size ? Or even less than 1 megabyte or 1 gigabyte. [root@server1 ~]# ls -lh total 7.8M ...
1
vote
1answer
37 views

How does a Unix program know to change output if it's being piped?

Calling something like ag (a grep alternative) results in an output that's human readable. Results are printed with headers. Useful for humans, horrible for programs. $ ag 'filter\(' tests/...
0
votes
1answer
43 views

Create virtual machine with vmrun?

I am using vmware's workstation pro, and I need to be able to manage multiple virtual machines remotely. Is it possible to use vmrun to create a virtual machine? Or can it only control already created ...
2
votes
0answers
19 views

unix user account start and end dates

Where I used to work the operating system was Solaris, and I found that in addition to the standard utility functions for looking up information about UNIX user IDs and group names such as getpwuid, ...
0
votes
2answers
240 views

How can I execute a command on a remote server through scp?

When using ssh to access raspberry pi running balenaos, ssh -t -p 22222 root@device-ip "balena-engine exec -it <container_name> /bin/sh" grants me access to a specific container inside ...
0
votes
0answers
25 views

FC-SAN: How can I know there is new disk adding to the SAN?

If there is a SAN like this. the topology image.when a new storage adds to the SAN, as a host how can I see it? whether it will be listed in the 'lsscsi' command ?
0
votes
0answers
28 views

how do i paste in LE text editor?

in LE text editor ( https://en.wikipedia.org/wiki/LE_(text_editor) ) how do i paste? i have tried right-clicking, left clicking, and ctrl+v to no avail, and when i do man le | grep -i paste | wc -l i ...
1
vote
1answer
24 views

How to fix broken “newline” from Mac to Windows

I have been given a set of python codes (.py) which were written on Mac. Unfortunately, when I open them on windows (pycharm, notepad, even word), there are no line breaks. I asked for .txt versions ...
1
vote
1answer
156 views

SFTP and Append data of the file to already existing file

I am new to unix. My client has a requirement to send some data files to a sftp server on regular basis. On the SFTP server there are the same name files already existing. What they want is that when ...
2
votes
0answers
84 views

Poetry add <package> returns AttributeError

I am trying to create a Python package using poetry. I haven't been able to replicate the steps described in documentation. When I try to add a dependancy, e.g. poetry add pendulum I get jan@jan-XPS-...
8
votes
3answers
2k views

How do commands like top update output without appending in the console?

I connect to remote Linux servers using SSH via PuTTY terminal emulator. I notice the commands I run and the output on console keep appending in the terminal window. I mean, when I use scrollbar and ...
0
votes
0answers
27 views

automatically set the home directory of a new user based on their group membership

I want to make a user that only belongs to one group, and their home directory is set depending on the group they belong to. I know that useradd -g thegroup -d target_directory theuser would work fine,...
0
votes
1answer
51 views

BASH: List External drives

I am trying to make a script that list all disk on my Mac exluding /dev/disk0 and /dev/disk0 (I only want it to show the external and virtual drives) and the name of the primary partition. Something ...
0
votes
0answers
71 views

Broke my sudo in Pop Os/Ubuntu, get segment fault error when trying to use sudo command

I was trying to make it so my computer would stop asking me for my password when ever I would run sudo commands so I copied this Ask Ubuntu answer: sudo nano -w /etc/sudoers (and enter your password ...
0
votes
0answers
9 views

Is it safe to follow guides that refer to /etc/init.d scripts for OS that uses systemd?

I have Ubuntu 20.10 which uses systemd. I have found this guide that refers to init.d scripts. Is it safe for me to follow it? Or init.d scripts are a System V thing, and my system uses systemd ...
0
votes
0answers
21 views

BASH: Run function every n seconds, but allow it to be interrupted by another keystroke

I'm looking to create a function for a script where another function will be called every few seconds, however the user should be able to issue other commands to the program while this is happening. ...
0
votes
3answers
65 views

Is there an elegant way to move all sub-directories in the current directory to a new sub-directory?

I often run into the following situation. I am in a directory with several sub-directories like so $ls a b c d I would like to archive directories a-d by moving them into a new directory at the same ...
0
votes
0answers
16 views

How to imitate UNIX “daemon”-processes using task scheduler in Windows platform?

I don't know the exact formulation anymore, but in UNIX the following crontab entry makes sure that a process always is running (and gets restarted in case it stops), which makes the process behave ...
0
votes
3answers
107 views

In bash, how can I list only files?

I'm looking to list only files and directories and no extra data. It's used for parsing the data and I don't need the extra items of file size, permissions...etc. TIA
0
votes
1answer
89 views

Sorting the output of the Windows tree command?

I typically use bash in MSYS2 on Windows, however, I have to inspect a massive network share (on which the MSYS2 version of tree chokes - as in, takes forever), and so I'm forced to use the Windows ...

1
2 3 4 5
78