Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

1
vote
1answer
64 views

How to delete tags from xml

I have the following XML file: <?xml version="1.0" encoding="utf-8"?> <deviceID>IO238470374109730497</devicdeID> <KeyValuePairs> <KeyValuePair> <BASE-URL>...
0
votes
1answer
17 views

How to use dhcp6c command to transmit a release message, confirm message, and do stateless dhcp?

I am trying to use the dhcp6c command to transmit a release message but it is unclear how to do that. I did find https://www.systutorials.com/docs/linux/man/8-dhcp6c/ but I was confused about the part ...
-1
votes
0answers
32 views

How to run FTP server in linux? [closed]

We boot the linux from sd card to zedboard and we display it using VGA cable. Now we want to trasfer any files or images or videos etc. to linux os. Please tell how to do that??
0
votes
2answers
80 views

How to move disk space from /dev/sda to /dev/sda1?

I have a Virtual machine using centos 7 with 200GB disk.For some reason my layout is: df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 100GB 95GB 5GB ...
-1
votes
1answer
19 views

How much does my volume group use of my hard drive?

I want to know how much space of my hard drive is being used in the hard drive , let me explain: My first hard drive is /dev/sda and the second one is /dev/sdb each one of them has a logical voume ...
0
votes
0answers
18 views

How do I find the video memory region(s) representing what's on my screen, from within the Linux kernel?

About 5-20 times a day I am presented with brief visual glitches and heisenbugs caused by race conditions that only occur under high I/O load. These disappear off the screen far too quickly for me to ...
0
votes
2answers
71 views

How to extend primary partition? Linux [duplicate]

My primary partition is running out of space (/dev/sda1). The main partition (/dev/sda) having much more free space. I want to transfer space from (/dev/sda) and extend to (/dev/sda1) partition which ...
0
votes
1answer
28 views

Is there a way to attach to a remote process?

I'm currently stuck with remote debugging issue of my application with gdb. I would like to have the ability to attach to a remote process and use IDE's visual debugging (I use Visual Studio Code). ...
-1
votes
2answers
66 views

how to compare two files and display in table format

I need to compare two files and display the difference in table format using shell script. for example. file1.txt ap-2.21.3.rpm bp-3.42.4.rpm cp-devel-3.23.2.rpm ep-devel- 2.23.2-23.rpm file2.txt ...
0
votes
0answers
16 views

Enable SSLV3 request in libcurl 7.52.1

I am using libcurl 7.52.1 to send http request so far I have successfully tried to send TLS request down to TLSV1.0. I need to send SSLV3 requests how can I enable SSLV3 request on my current libcurl ...
3
votes
1answer
94 views

How to find and delete duplicate video (.mp4) files? [closed]

I have 16,000+ short video clips and there are lots of them that are exactly alike to the human eye, but if you examine very closely you will find that one or the other may have an extra 1 second (or ...
1
vote
1answer
35 views

Is it possible to automatically zip newly created files in a directory

Context I am required to use a poorly designed java application that logs A LOT of information while it is running. Under standard usage, it will create 100s of MB of logs per hour. I don't need ...
1
vote
1answer
62 views

CentOS 7 “Invalid user __ from xx.xx.xx.xx port xxx” - Not showing the attempted username entered

When taking a look into my /var/log/secure logging file, I'm able to see attempts to log into my CentOS system via SSH, however, the username is blank. I've recreated this myself by entering false ...
0
votes
0answers
26 views

pip - fatal error: leveldb/db.h: No such file or directory

The usual answer to this is that I am missing leveldb from my system, however the python3-leveldb libleveldb-dev packages includede in Debian 9 are for python3.5 but I am using python3.7 I compiled ...
14
votes
2answers
2k views

Does a computer system (Linux) only have one host name?

hostname is used to display the system's DNS name, and to display or set its hostname or NIS domain name. Does a computer system (Linux) only have one host name? In virtual hosting, several host ...
0
votes
2answers
52 views

How to combine 2 commands into one command?

Command 1: echo "11-FEB-19 06.14.52.352000000 AM" | cut -d' ' -f1,2 | sed 's/\./:/g' |cut -d: -f1-3 Command 2: date -d "OUTPUT COMMAND1" +'%s' Expected : - echo "11-FEB-19 06.14.52.352000000 AM" | ...
0
votes
1answer
17 views

Change filesize unit with a tar command

How can I change the filesize unit that is output by the tar command? tar tvf test.tar.gz | awk '{print $5,$9}' I would like for it to print the filesize in Gigabytes.
0
votes
0answers
9 views

How guarantee a responsive Desktop using cgroup memory limit

I would like to setup a system with limited memory (raspberry pi) in such a way that application can't cause the desktop (x11, LXDE, openbox, mouse driver, video card driver) to be unresponsive. When ...
0
votes
0answers
14 views

Writing files to mounted jffs2 image works, only when image mounted

Im writing file to a mounted image. It saves there, im unmounting image, extract it contents by jefferson and its gone. Where is my file? How it is that i see it only when image is mounted? I'm stuck ...
1
vote
2answers
43 views

Command to find and combine files matching a complex name pattern

My Linux directory contains a dump of files and they look like: EDW_Infile_ABC_Daily_Activity_20190204.csv EDW_Infile_ABC_Daily_Activity.zip EDW_Infile_PQRInc_Daily_Activity_20190204.csv ...
-1
votes
0answers
12 views

How guarantee a responsive Desktop using cgroup memory limit

I would like to setup a system with limited memory (raspberry pi) in such a way that application can't cause the desktop (x11, LXDE, openbox, mouse driver, video card driver) to be unresponsive. When ...
1
vote
1answer
20 views

Running DOS in Linux Mint with WINE

I've tried installing WINE with WINEtricks, as I want to run a DOS window on a Linux Mint 64 bit system. So far, I haven't been successful at doing this. Has anyone been able to accomplish this task,...
0
votes
1answer
20 views

Finding dns-sd package for FreeBSD and Linux?

IETF RFC 6763 section 7.1 (p.21) refers to a CLI program called "dns-sd", which can be used to probe and report zero-config services, records and environments. A number of other web pages also refer ...
0
votes
0answers
41 views

How does linux uses device files stored in /dev? [duplicate]

I really got confused how kernel/device drivers use device files? What does happen when we read some file from a device using cat file1.txt? Do device driver copy the content to these files? If yes ...
0
votes
0answers
26 views

Apache : Change Apache port and virtualhost address via shell script [closed]

I am working on a project, where the user can set the ports and virtualhost IP address to which apache listens. How can I set this via a shell script? DIstribution : UBuntu 18.04. These are the ...
1
vote
1answer
30 views

CPU statistics calculation algorithm

I too many search on internet to found algorithm calculated %Us , %Sy , %Id , ... on result of top command . but can not found any documentation . some documents like this or this calculate cpu ...
1
vote
0answers
21 views

Is it possible to access linux/ramdisk code memory from its running system?

I'm working with an embedded Linux device that has to be auditioned by a regulatory agency. The agency will select a few devices in the field to check if the code running is the same as auditioned. ...
0
votes
1answer
31 views

Passwordless(MFA) login Linux

On windows there is Windows Hallo with support for bio-metrics/pin/yubikey/smartphone app. Even if it's not a 1:1 alternative Im looking for something similar. Is there any way to set up multi-factor ...
0
votes
0answers
21 views

Pernament tunnel at every boot in CentOs 7

I want to have my tunnel UP at every system restart. It is my non persistent solution: ip tunnel add vti0 local 222.222.22.222 remote 33.333.333.333 mode vti key 41 ip link set vti0 up ip addr add ...
0
votes
1answer
17 views

want to install PyQt5 for slitaz

I want to run an application that need python3 and pyqt5 in Slitaz 5. I am not pro in linux but managed to compile and install python3. now when I try to run application it tell me that need pyqt5. so ...
0
votes
0answers
10 views

Is there any difference in performance when creating VM using default template vs custom snapshot in DO/AWS lightsail? [closed]

AWS Is there any difference in performance, when we creating instance in AWS Lightsail using your blueprints vs using custom snapshot? Example: AWS Using AWS Blueprint $result = $client->...
1
vote
0answers
24 views

How to specify user & group of volume via docker-compose?

I am launching a docker environment by means of docker-compose. This provisions both a mysql and nginx process. The latter mounts a path that contains the folder that will be served. The issue is ...
1
vote
1answer
75 views

Convert primary partition to logical partition in linux

I have created new partition through Gparted in linux mint and now have used up all 4 primary partitions. Gparted directly created primary partition, the logical option was disabled. So I cannot ...
28
votes
1answer
2k views

Inconsistent color output from `ls` command

I teach an Intro to UNIX/Linux course at a local college and one of my students ask the following question: Why are some of the files in my directory colored white and others are gray? Are the white ...
1
vote
0answers
27 views

Is it possible to create a thread without sharing memory space?

The http://www.man7.org/linux/man-pages/man2/clone.2.html write Since Linux 2.5.35, flags must also include CLONE_SIGHAND if CLONE_THREAD is specified (and note that, since Linux 2.6.0-test6, ...
0
votes
0answers
21 views

Moving an installation [closed]

I have run into several dependency issues performing an offline install in a secure environment. I have a VM that has a program installed, and I am looking to reinstall said program on a different VM ...
0
votes
1answer
31 views

openmpi and read file in lines

I need to run several tasks in sequence. The task names are listed in a file (jobs.txt). I use the following code (example): #! /bin/bash while IFS=$'\r' read -r line || [[ -n "$line" ]]; do ...
0
votes
2answers
52 views

Trying to do a Proof of Concept of poisoning 'ls' binary to hide files and folders

I am currently trying to modify 'ls.c' source file in order to hide files and folders containing the word hidden. After doing some research, I've found that this could be possible by adding this code ...
0
votes
0answers
37 views

Cannot login with Linux Mint 19 via terminal

I cannot login via terminal (I do not know if this is because of Mint or Ubuntu). When I enter the username, I want to enter the password, but what it does, it autoenters with an enter it goes like ...
2
votes
0answers
22 views

udev event triggering multiple times and not respecting matching conditions

I'm attempting to write a udev rule that triggers when my laptop power cable is plugged in, however I'm having some odd issues with it triggering multiple times, on both plugging and unplugging. ...
9
votes
3answers
1k views

How do `/etc/hosts` and DNS work together to resolve hostnames to IP addresses?

In Linux, how do /etc/hosts and DNS work together to resolve hostnames to IP addresses? if a hostname can be resolved in /etc/hosts, does DNS apply after /etc/hosts to resolve the hostname or treat ...
0
votes
0answers
22 views

Tracing writes to files and devices

I would like to audit writes to a specific file (like /home/john/file.txt) and/or a specific device (like /dev/tty/1). How to do it? By audit I mean: What was written by process? Solution based on ...
0
votes
2answers
46 views

Alias for git command

is there a way to make an alias for creating, a new branch? For example, I want to type "feat" and get something like "feature/blabla-" so I will need to add just a number. i want to type git ...
3
votes
1answer
283 views

What signal is sent to running programs / scripts on shutdown?

Right now I have the following: # this function is meant for future script expansions # its purpose is clear, i.e. to clean up some temp files # now, it is doing nothing, just a special null command ...
6
votes
0answers
91 views

Why can't I “swapoff” when there's plenty of memory?

I've recently noticed that even though there's a lot of memory on my system: # free -m total used free shared buffers cached Mem: 15965 9680 ...
0
votes
0answers
15 views

Cross plaform encryption of USB key (securefs Sirikali)

I'm in the need of: a) a folder based encryption mechanism like securefs, encfs on my USB key b) cross platform (linux and windows) c) has the binary on the USB as I can't have install software on at ...
0
votes
1answer
33 views

How to Copy Millions of Files from Remote Server to Local One [duplicate]

I have this problem, I have an Ubuntu server (SSH enabled on port 4444). Inside this server there's a directory called /folder/a/, this directory literally contains millions of small size text files. ...
0
votes
0answers
13 views

Sudo hangs to run software EastFDTD

As I want to run a program, I command it as below and then I fill in the password. Next it hangs, did not do anything. What I am suppose to do, reboot my pc and program or there are some tricks to ...
2
votes
2answers
58 views

How does Linux know how and what drivers to install in a new installation

I would like to know how Linux, such us Ubuntu, "know" how and what drivers to install when installing it from scratch. For example, I buy a new computer without any system and I install Ubuntu. ...
1
vote
3answers
66 views

Checking server is listening without telnet, from CLI?

Typically an easy diagnostic approach to checking an application server is running is to run telnet again the host and port: telnet somehost port The issue is that some operating systems, such as ...