All Questions

0
votes
1answer
14 views

How to distinguish attached monitors?

To automatically change the display layout of the Xserver when I dock my laptop I need not only detect that this event actually happened but also which monitors are connected to be able to distinguish ...
0
votes
0answers
27 views

Close the file in vim without closing the file explorer

I am browsing the files in vim file explorer by entering vim dirname. Then I am opening the file, saving and closing it by entering :wq. Now the file explorer window disappears. How to prevent this ...
1
vote
1answer
33 views

What is the deal with this usb drive with a second block device?

I have a giveaway usb stick and when I plug it into my computer and run lsblk it shows two block devices, i.e. sdb and sdc. sdb of them contains almost all the free space ( ~15G) and the sdc one is ...
0
votes
0answers
17 views

How can I determine which thread raised a signal? [migrated]

I have a multi-threaded application with a signal handler. In my signal handling function, how can I determine which thread the signal came from? I have looked in the siginfo_t that gets passed in, ...
1
vote
3answers
41 views

First Day of week stuck on Sunday in any locale (Debian)

I'm trying to figure out why I can't have any locale working with monday set as first day of the week. Installed locales: francescos@Thinkpad-T420:~$ locale -a C C.UTF-8 en_GB.utf8 en_IE.utf8 en_US....
-2
votes
0answers
46 views

Whenever I open shell it print command not found [on hold]

Whenever I open a new tab or new window I see the following error in the console bash: 4e3291fa48f43adebb522c3c91f49c3120d927525994a34052bee83fb15b55f9: command not found bash: ...
0
votes
1answer
37 views

Calculate difference in negative floating numbers with bc

I want to calculate the difference between two negative floating numbers and subsequently check if the result is below a certain threshold. The numbers are stored in the file.dat, since this ...
0
votes
2answers
31 views

How to print a new line if a pattern from a column matches in 2 lines?

I have the following file: transcr_15824 - YML042W - transcr_18545 - YCR105W + transcr_16934 + YDR032C + transcr_15237 + YDL008W - I do need something that looks like this: transcr_15824 - YML042W -...
0
votes
0answers
66 views

Oracle Java 8 installation Not Found (404) Error [duplicate]

I wanted to install oracle-java8-installer and after adding the repository, give the command sudo apt-get install oracle-java8-installer. First the screen appears that is about agreement, after ...
0
votes
1answer
23 views

Devuan RFS. How to automate resolution of internal IP (LAN) addresses

System correctly resolves external hostnames (bbc.co.uk for example) but will not resolve any internal (LAN) ones. The question here is how to automate LAN lookups without having to modify hosts and ...
0
votes
0answers
22 views

systemctl status shows “active since” from before reboot

I have Debian 9.6 running on Beagle Bone Black. I have external hardware clock on /dev/rtc1 with correct date. Upon reboot /dev/rtc1 is initialized in rc.local. I added to rc.local lines showing date ...
0
votes
0answers
20 views

Symlink resolution and the $ORIGIN variable in RPATH

Are symlinks resolved before or after the dynamic loader figures out the value for the $ORIGIN in the rpath from an executable? Longer explanation: I'd like to know if there's an standards-compliant ...
0
votes
2answers
46 views

Extract and rearrange from file

I have file which I want to extract and rearrange certain data , Old file contains a raw data this file is Input reference:cve,2017-8962 sid:45885 reference:cve,2016-10033 reference:cve,2016-10034 ...
2
votes
5answers
65 views

Listing files recursively, grouping by user and summing its size

I need to verify the size occupied by each user on my Linux server (all files recursively inside my data folder). With the code below I can get all of my files and their users, but I don't know how ...
0
votes
4answers
38 views

How can I remove repeated lines taking into consideration the text from just a column?

I have the following file: ICR1 + ICR1+1+3199 + ICR1+2526+2828 + IRT1 + IRT1+1+1489 + IRT1+713+937 + LSR1 - LSR1+1+1175 - LSR1+366+638 - NME1 + NME1+1+340 + NME1+2+118 + PWR1 - PWR1+1+941 - PWR1+724+...
0
votes
3answers
30 views

Using xargs command

Can i use ls - t | xargs > output.txt by being outside the directory for example I want to access /home/123/script/final directory and then perform the above function. Something like this: ls - ...
0
votes
1answer
50 views

Who writes the log on the screen during shutdown and startup (after grub)

As we know, when we startup the system (after grub) and when we shutdown the system, many logs will be printed on screen. I know that the kernel would write some logs of the kernel. But how about the ...
0
votes
0answers
12 views

How to find out if a given shortcut combination does something, other than trying it?

I'm using Linux Mint 19.1, and noticed that the shortcuts alt+shift+up and alt+shift+down stopped working on Sublime Text 3. I checked the app configuration, and it is correct, so I suspect that this ...
0
votes
1answer
32 views

Does POSIX guarantee certain usernames?

In the POSIX Definitions there is specific section 3.424, User Database, which defines what information should be related to each user ID. However through out the document, I couldn't find (at least ...
-1
votes
0answers
27 views

How to capture a terminal command and replace by another one?

I want to redirect the user's command line, to copy another folder when they tried to git clone content from a specific folder. For example: git clone https://github.com/delivery.git john_copy I ...
0
votes
2answers
25 views

Omit one column in ls -hal

How do I omit the group column in the output of ls -hal? I was using ls -hal|cut -f4 --complement -d ' ' and it works find most of the time, but if I run it in / I get scrambled output: drwxr-xr-x ...
0
votes
0answers
17 views

How migrate from Openstack KVM VM to KVM

I have one VM in Openstack that VM in qcow format . I want to migrate it to another datacenter KVM VM machine but it supports ISO file.
1
vote
1answer
43 views

Cloning builder process: Operation not permitted when using Nix (under Linux) update channel

I use Arch Linux 4.19.15-1-lts #1 SMP Sun Jan 13 13:53:52 CET 2019 x86_64 GNU/Linux. I do also have Nix installed: nix-env (Nix) 2.2. I've never had any problems until the recent update to version 2....
-1
votes
0answers
26 views

A script that displays the pid of processes started [on hold]

I found the next exercise : write a script called find-pid.sh that gets the full path parameter to an executable and displays all process PIDs started using that executable. PIDs will be displayed ...
1
vote
2answers
42 views

Copy a folder overwriting ONLY smaller files in destination

I have tons of PDFs in multiple sub-folders in /home/user/original that I have compressed using ghostscript pdfwrite in /home/user/compressed. ghostscript has done a great job at compressing about 90% ...
0
votes
0answers
19 views

Command to print most recent JOBID in LSF in Linux?

In bash shell, I used awk with awk '{print $1}' . Ihave tried in the for loop and my code in the shell script as below; for i in `cat $test_list_file` ...
0
votes
1answer
20 views

ssh-keyscan -H returns different keys every time

I'm getting different keys every time I run ssh-keyscan -H some.hostname.example. Why is that? Is the server continuously changing keys? They keys I'm getting from one run seems to work even after a ...
1
vote
1answer
19 views

Messed up environment variables in Centos 7

When I am running my maven build I am getting this error: Error: JAVA_HOME is not defined correctly. We cannot execute /usr/bin/bin/java I have edited .bashrc, .profile, /root/.profile and /root/....
0
votes
4answers
63 views

How remove duplicate names and print array after unique names

How to collapse KO categories with the same name and print gene names that were assigned to each category in array, as in example below. I have this: K00002 gene_65472 K00002 gene_212051 K00002 ...
0
votes
0answers
9 views

Tcp TCPBacklogDrop and packets pruned from receive queue

I am analyzing two virtual machines in the same LAN, tcp packet loss problem, but the knowledge has been exhausted. platform CentOS Linux release 7.2.1511 (Core) 3.10.0-327.el7.x86_64 #1 SMP Thu Nov ...
2
votes
1answer
21 views

Local keys don't work in graphical shell in Debian 9.6

I installed Debian 9.6 with english as the language, and locale settings (incl. keyboard) as finnish. All works fine in desktop apps e.g. Chromium, but the keys "ä", "ö" and "å" don't work in Konsole, ...
0
votes
0answers
29 views

How to forward rsyslog logs from multiple locations to ELK and make it show in kibana?

rsyslog server template consideration for multiple remote hosts ---> link to previously answered question @ meuh, I find this post very useful as am currently working on this configuration. I ...
0
votes
0answers
15 views

Patch files with only additive changes

How can I use eg diff to create a patch file containing only the additive changes from file A to file B? Lets say B is a buffer containing only recent data, old data is deleted in a fifo manner. I ...
0
votes
0answers
33 views

Persistent trouble with FAT32 formatted USB pen drive mounting as read-only drives [on hold]

My 16GB USB pen drive mounts as read-only on Ubuntu 17.10. I tried reformatting/checking on mac, windows & on a desktop with Opensuse. I tried all the suggestions on different forums/blogs ...
3
votes
2answers
41 views

How do I specify a path to an executable for a systemd unit file on nix?

I'm trying to write a systemd unit file. How do I specify the path to an executable? How can I determine what to use? In this specific case I'm trying to use mkdir. ExecStartPre = "/bin/mkdir -p %h/...
0
votes
1answer
41 views

How to restore a deleted file while it's still being opened?

I tried xtricman⚓ArchVirtual⏺️~🤐ls /proc/self/fd/ -l Total 0 lrwx------ 1 xtricman users 64 1月 16 16:34 0 -> /dev/pts/0 lrwx------ 1 xtricman users 64 1月 16 16:34 1 -> /dev/pts/0 lrwx------ ...
3
votes
3answers
385 views

Command not working properly in shell script

Here is output of: sudo iwlist scan 2>/dev/null | grep ESSID | sed 's/.*ESSID:"\(.*\)".*/\1/' 2>/dev/null Yash Shah CoreFragment CoreFragment_5G CoreFragment dlink Yash Shah COMFAST ...
0
votes
0answers
18 views

mate-terminal - is it possible to toggle menu/tab/scroll bars when switching between full screen and window mode?

I use MATE 1.16.2 on Debian (Stretch) 9.0.0 and I've been customizing my command line of choice: mate-terminal (version 1.16.3). I've made a distinctive $PS1 prompt and further personalized my ....
0
votes
0answers
16 views

optirun-Cannot access secondary GPU

After installing bumblebee on debian 9 by sudo apt-get install bumblebee primus as described in debian-bumblebee webpage to use intel and nvidia (Geforce 940MX) gpu in my ASUS computer and running ...
-4
votes
0answers
22 views

tftp not working [on hold]

-- Logs begin at Wed 2019-01-16 08:15:47 IST, end at Wed 2019-01-16 12:47:37 IST. -- Jan 16 11:48:03 Siddharth systemd[1]: Starting LSB: HPA's tftp server... Jan 16 11:48:03 Siddharth tftpd-hpa[8915]: ...
0
votes
0answers
14 views

i3bar failing with exit code 1

On i3 startup i3bar gives me Error: status_command exited unexpectedly (exit 1). Manual i3bar restart via killall i3bar; i3bar --bar_id=bar-0 works until next i3 restart. My .i3status.conf: general { ...
0
votes
0answers
31 views

How to start a systemd service running in an ssh-agent?

The answer to How to start and use ssh-agent as systemd service? gets us a running ssh-agent. How can you write another systemd service file so that its process runs under that ssh-agent? In ...
0
votes
1answer
30 views

Change file name while copying based on source path

I have a large number of files in directories of the format */*/*/*/*.txt and I would like to copy them into a different place while replacing the forward-slashes in the path with underscores. For ...
-4
votes
0answers
21 views

How to solve “Kernel panic - not syncing - Attempted to kill init” [on hold]

How to solve “Kernel panic - not syncing - Attempted to kill init” Kindly share your findings. How to solve it??
0
votes
0answers
16 views

configure non-modifier as a modifier key

This question is similar to: https://askubuntu.com/questions/33751/making-any-key-into-a-modifier-key I have a machine with a non-standard keyboard layout (lenovo x1 carbon) where the CapsLock key ...
0
votes
0answers
19 views

Filter output / print one record per event or time period

I've got a custom HID device which prints out exact coordinates of touched points at real time. It is very sensitive & currently printing out the coordinate that's being touched on multiple ...
0
votes
1answer
32 views

rsync not quitting and running next rsync

I have a shell script that has 6 rsync commands. What it should do is run the first and then move on to the next. However, what it does right now is do the first once it is finished it'll hang and ...
0
votes
1answer
30 views

install packages with yum disabled

Toda, i tried to install samba with yum, but i got an error and a series of instruction which i don't understand because it's the first time i'm working in this environment; the error and instructions ...
1
vote
1answer
37 views

What characters need to be escaped when using the printf command?

I want to clarify that I am not talking about how to escape characters on the shell level of interpretation. As far as I can tell, only two character need to be escaped: % and \ To print a literal %,...
0
votes
0answers
10 views

Bette way of loading 3rd party modules into NGINX? Build Customized NGINX or Load at the run time?

I noticed there are two ways to load 3rd party dynamic modules into NGINX. (1) Build NGINX with that modules: https://github.com/ajdruff/nginx-naxsi-rpm/blob/master/how-to-build-your-own-nginx-rpm....

15 30 50 per page