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.

0
votes
0answers
10 views

Removing duplicate files

I have plenty of duplicates files by name and some by content between two different folders. How do I put the unique files into one common folder. For example: Folder A - I HAVE 100 dm4 files ...
1
vote
0answers
21 views

Centos mysterious disk space use df vs du [duplicate]

My root disk is showing 100% filled space, but checking space used via du it is far less. I tried to zero "deleted" files but still the space is not recovered. It is an xfs file system, but since it ...
0
votes
0answers
12 views

Azure VM cloud-init overrides /etc/fstab

I added an additional data disk, as described in the Attach a data disk to a Linux VM documentation. The partition in question is /dev/sdc1. I added this line to the very bottom. Unfortunately the ...
0
votes
0answers
26 views

Bash script: if [execution_time] time pass 10 min then write-something else write-somenthing-else

I am a quite beginner with bash scripts - and with Ubuntu as well to be honest. What I would need to do, is the following: Ask for some parameters Loop on other parameters Run a python script that ...
0
votes
2answers
34 views

Is it possible to list everything a specific process is trying to do?

I have a web app in a jboss application server that gives a not understandable error. I’m 100% sure it is because it is trying to access a forbidden file system location. Is it possible to profile ...
1
vote
0answers
6 views

OpenVPN bridge connected printer can't send ping reply to server

I am using wifi-connected computer set up near my non-wifi-capable printer as a bridge to put the printer within my subnet. The computer is set up as a vpn client with the tap port bridged with eth0. ...
2
votes
0answers
34 views

Random ~~~~~3~~3~~~3~~~33~~~`~~~~in SSH Console/terminal

Lately when I am using SSH on the computer ( PuTTy) or on the smartphone ( Juiche SSH) I get random input with 3's and ~'s I don't know how to fix it, it's impossible for me to input a command the ...
0
votes
3answers
29 views

Question about if statement format

The following code prints "Odd" no matter what number I put in, why doesn't it print "Even" when given an even number as an argument? if [[ 'echo "$1%2" | bc' =~ 0 ]] then echo "Even" else ...
0
votes
1answer
9 views

Use reverse i search to cycle through only commands matching pattern

The contents of the command history file using history | less is: 555 ls 556 ls -a 557 echo "hello" 558 echo "hello again" 559 cd 560 pwd 561 echo "hello hello" 562 ls 563 echo "hello hello hello" ...
0
votes
0answers
13 views

High overload CPU and API/GET slow [on hold]

Got a Linux Server (Nginx) version 2.6.32-573.7.1.el6.x86_64 with modules like: Rabbitmq and nginx and an API. This was developed by a employee that does not work anymore for me and I am not a ...
0
votes
0answers
7 views

How to calcuate the real file name of a cached file when using “proxy_cache_path” in Nginx?

I have nginx which works as a cache proxy. A part of a config: proxy_cache_path /home/my_user/cache levels=1:2 keys_zone=my_key:5m max_size=500m inactive=10d; server { listen 80; # [.......
0
votes
1answer
16 views

Cron is not logging stderr in /var/mail/user

I have this user who have a lot of cron jobs and I expected it to log stderr in its /var/mail/user. Sample below cron entry is working as expected in a different server. * 30 * * * * /usr/local/bin/...
2
votes
0answers
56 views

Why do mount points need to be existing directories?

This question is not about me having any kind of technical problem. It is about understanding a design decision. To me, the question "Why do mount points in Linux need to be existing directories?" ...
0
votes
3answers
32 views

Linux grep - finding lines that contain same number

I am currently working with a file for atomic distances in a protein. Distances are either within the same residue or between different residues. I am wondering if there is a way to sort/find all of ...
0
votes
0answers
32 views

How to make password prompt to the root shell accept any password?

Board running embedded Linux version 2.6.26.5 and Busybox 1.10.2 When accessing board via a serial console port, the access to root shell is password protected. How to make the password prompt accept ...
2
votes
1answer
42 views

google chrome “managed by your organization” on linux

today I opened google chrome and saw this on customize and Control menu : "managed by your organization" , is that a malware sign ? if yes how can I completely remove that malware? my os is a Linux ...
1
vote
1answer
44 views

how to start a shell that will display login / password prompt?

lets say that I have a program that is running in tty1 displaying a menu, one of the entry of this menu is to have access to the shell, which command can I start to be able to have a prompt asking for ...
0
votes
1answer
24 views

Cannot change file/folder permission on Linux running on VMware

I am using Linux on a VMware on Windows and added a second HDD device today. However, each file or any dictionary that is created on the new device gets executable permissions which are not removable (...
0
votes
0answers
40 views

How to make system() function unblocking? [migrated]

I am calling an executable from another executable in android Linux. Following is the relevant code: ... int status = system("/system/bin/executable"); ... My requirement is not to wait for the ...
0
votes
1answer
28 views

Cronjob fetching JSON with cURL. Check if response isn't empty before writing to file

I'm running Ubuntu and got a simple cronjob fetching a remote JSON-file and (over)writing it to the server. */15 * * * * /usr/bin/curl -m 120 -s https://path/to/remote/json.json > /store/json/here....
1
vote
3answers
37 views

How to rename the multiple files within a directory

I want to rename the below files Var1DecoderBase.cpp Var1DecoderDerived.cpp Var1EncoderBase.cpp Var1EncoderDerived.cpp Var1Factory.cpp to Var4Config.cpp Var4CountDownTimer.cpp Var4DecoderBase.cpp ...
0
votes
1answer
53 views

How to calculate the password length if the user already exists in Linux?

How to calculate the password length if the user which already exists in Linux? I only know the encrypted password for that user in another file /etc/shadow. Can I calculate the password length from ...
0
votes
0answers
9 views

/dev/disk/cloud/azure_resource-part1 in /etc/fstab override after stop and start vm in azure portal

i want to make /mnt as my extrnal disk directory , i folwed this tutorial : https://docs.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal and my data disk was /mnt , after some ...
0
votes
2answers
24 views

What does the L returned from passwd --status mean

I was checking my password status and noticed that instead of NP or P there was a L returned so i checked the man pages and found it was a locked password could someone explain what this is to me?
-4
votes
2answers
47 views

Forgot to put a slash before download path, where were these files downloaded to?

I forgot to put a slash before my home folder when downloading some files and it seems that they downloaded successfully but I can't seem to navigate before / within my thunar explorer so I can't get ...
0
votes
0answers
9 views

How do I change my command line colors for Centos 7?

I just want to change the text of everything after the [user@localhost ~]$ to white. Right now all the text is blue. I want the previous part to remain as it is, blue, while the rest is white. I ...
0
votes
0answers
15 views

Linux Crontab Segmentation Fault

For some reason, my crontab is giving me segmentation fault (core dumped) error when ever I attempt to access it using crontab -l or crontab -e. Everything is fine if I access the root crontab or ...
0
votes
2answers
28 views

Running commands on shutdown/restart Ubuntu 18.04

[My Config] Ubuntu 18.04 - digitalocean droplet/server [Background] I presume from my research that since 18.04 /etc/network/intefaces has been deprecated and something called netplan was introduced. ...
0
votes
1answer
19 views

youtube-dl : how to skip downloads lower than 480p resolution?

When using the popular program youtube-dl, how can I skip download of certain videos, particularly ones that have a lower quality than 480p resolution?
0
votes
0answers
17 views

Issue with startx saying that there are no monitors found on Arch Linux

I installed Arch on my laptop yesterday and since then I have been unable to open i3. I installed xorg, i3-gaps, and changed my ~/.xinitrc file to read: xrandr --setprovideroutputsource modesetting ...
0
votes
0answers
17 views

Setting Ethernet interface with no address systemd-networkd

I am trying to figure out a way to tell systemd-networkd to bring up an interface with no IP address and force an operation state in networkctl. This is what the output of my networkctl command looks ...
1
vote
1answer
23 views

Erasing hard drive to reinstall Mint

After installing Linux Mint, I had a problem with the hard drive (more than 200GB) getting full without me downloading anything. This was probably because of timeshift and some users said it also had ...
0
votes
1answer
26 views

How to fork a process from kernel space? [on hold]

I am conducting an experiment involving Linux, 'and for it I need to know how to fork a process from kernel space? I can't figure out what file to include, or what the method is called. Sorry for my ...
1
vote
2answers
94 views

What is the best way to install a GNU/Linux distro to a computer that doesn't include CD/DVD rom?

I build a PC a couple years ago and just didn't include CD or DVD rom... I don't know who uses them anymore but I don't. Now I want to install the Debian to the PC but it wants to detect CD-ROM. Did I ...
1
vote
1answer
23 views

Primary and secondary group of a user

Why is it that group1 which should be user's primary group, is in the subgroups? The user is not even part of group1 in /etc/group file. # id user uid=1000(user) gid=1111(group1) groups=1111(group1),...
-2
votes
0answers
51 views

Linux suspicious activity [on hold]

Actually, I am new to Linux. I am about to write a use case on linux based on suspicious activities. I have found a user has been added and deleted with in a short period of time. I just want to know ...
0
votes
0answers
17 views

ACL vs Groups, Which one is better? [duplicate]

i recently heard about ACL in Linux, and read that we can allow permissions to specific users using ACL. But my question is we can do the same using the groups then why do we use ACL or is it me who ...
1
vote
1answer
49 views

how to split the matching file pattern files in same directory using if else or for loop condition?

I am having 5 types of files in same dirctory.then i want to split all the files in the same directory and i need to give the splitted file name as dynamic(original file name + additional extexnsion). ...
0
votes
2answers
22 views

How to delete rogue cron job [duplicate]

Hello everyone, My machine has been hijacked by a bitcoin miner. he has a cron job that runs every 2 seconds. Using crontab -e to delete it doesn't work because it respawns soon after. ...
1
vote
1answer
37 views

Time measurement in the Linux kernel

I want to measure time intervals in my kernel. I know nanoseconds are not really precise but I need more precision than milliseconds. There are many many functions to get a time. Jiffies, time of day,...
0
votes
0answers
24 views

How to make alphabetical sorting work with whitespace?

I am on Ubuntu 19.04 ls outputs the following, and this is how it appears in nautilus as well Arca - Arca Arcade Fire - Funeral Arca - Mutant Obviously, this should be as below. Is it possible to ...
0
votes
1answer
45 views

Can I assume a new keyboard works with linux?

I'm buying a new keyboard, specifically HyperX alloy pro. It obviously works for windows 10 but I see no information on linux use. Can I assume it works for linux? By works I mean the typing works, I ...
1
vote
1answer
32 views

Can’t boot laptop (Linux Mint)

I was watching YouTube with Tor Browser, when the storage on my computer got full. This happened yesterday and the storage got emptied again after a while. The program that shows what files use up ...
0
votes
1answer
80 views

ps axf shows “/sbin/init splash” for PID1

I want to reformulate a very interesting Q by Thelostcause ("Splash in PID =1"): How does and how can "/sbin/init splash" show up in the ps command? I also ask: aren't we (we who are running a "...
0
votes
1answer
27 views

Grub, usb multiboot ubuntu and windows 10 installation disk

I made usb disk multiboot installation, ubuntu and windows 10. sudo parted -s /dev/sdb mklabel msdos sudo parted -s /dev/sdb mkpart primary 1MiB 551MiB sudo parted -s /dev/sdb set 1 esp on sudo ...
0
votes
0answers
20 views

How to list imported functions (.plt) for an ELF executable without disassembling using objdump?

Currently, I check for imported functions (.plt) using objdump: objdump -D -j .plt myprog | grep '@plt' However, it doesn't seem right to have objdump output annotated disassembly to grep to list ...
1
vote
1answer
28 views

How to preserve filename and folder structure when using foremost recovery program?

I am desperately needing to run the linux recovery software foremost and preserve filenames and folder structure. As you might know the program renames the recovered files with a numerical value and ...
0
votes
0answers
22 views

check file of sftp and return output to log

I need your assistance. I'm trying to finish a script that I've done but it is not working perfectly. here is the script: #!/bin/bash # iclog=log key="keys/cash_prod_key" date=$(date +%Y%m%d) ...
1
vote
1answer
10 views

Ordering Cycle - FirewallD & DBusException

[SYSTEM] Virgin DigitalOcean droplet Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-52-generic x86_64) with all updates with latest Virtualmin and nothing else. How would you suggest I proceed with this? [...
0
votes
0answers
14 views

What is the reason for being unintentionally changed to attached file from message?

Here is my code with mailutils, below a echo "MESSAGE" | mail -s "SUBJECT" TOADDRESS -aFrom:MYSMTPSERVER -A FILE.TXT -E 'set mime'. This mail yields an intentional result when TOADDRESS=some@...