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
8 views

High overload CPU and API/GET slow

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
18 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
19 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
7 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
6 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
3answers
31 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
1answer
25 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....
2
votes
1answer
41 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 ...
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/...
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
0answers
44 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?" ...
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 ...
1
vote
3answers
35 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 ...
2
votes
2answers
2k views

Unable to compile Linux Kernel 4.7-rc2

I was trying to compile Linux Kernel from source. I've compiled the kernel previously and never got any error. But this time I am facing an error. The error is CHK include/generated/asm-...
0
votes
0answers
30 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 ...
1
vote
1answer
41 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
23 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
29 views

How to make system() function unblocking?

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 ...
1
vote
1answer
36 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,...
3
votes
1answer
25k views

How to set up an usb/ethernet interface in Linux?

me@me:~$ sudo /etc/init.d/networking restart [ ok ] Restarting networking (via systemctl): networking.service. me@me:~$ sudo service network-manager restart me@me:~$ sudo ifup eno1 Internet Systems ...
1
vote
1answer
9 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
2answers
26 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. ...
2
votes
3answers
2k views

Does sync command remove the dirty cache in the memory?

I am aware that sync command flushes the dirty cache into disk. I have run free command first, then sync, and then free again. The result of latter free command shows more free memory available than ...
0
votes
1answer
78 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
48 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 ...
3
votes
2answers
9k views

What does the “flags” field in getfacl mean?

I'm trying to set permissions on a server between users using ACLs. When I'm checking their status on one of directories using getfacl dir10, it shows: root@svn:/srv/resources/somedir# getfacl dir10 #...
0
votes
1answer
95 views

Simple file copy (or write) causes ten second+ latency on Linux filesystem

I am running Linux on a spinning hard drive. WDC WD5000LPLX-7, "WD Black Mobile", 7200 RPM. I noticed a simple file copy (or write) causes fsync() latencies of over ten seconds. Is there some way ...
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
1answer
1k views

Limiting download speed based on other LAN traffic

I'm kind of new to Linux (but learning) so bare with me if I say something stupid :P. I'm currently running an Ubuntu fileserver which automates a whole bunch of downloading tasks. At present it is ...
0
votes
0answers
7 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 ...
11
votes
2answers
2k views

Why do Linux/POSIX have lchown but not lchmod?

It seems that Linux supports changing the owner of a symbolic link (i.e. lchown) but changing the mode/permission of a symbolic link (i.e. lchmod) is not supported. As far as I can see this is in ...
-4
votes
2answers
44 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 ...
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
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
13 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
0answers
16 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
1answer
1k views

Installed PHP extensions to wrong PHP version

I just bought a VPS and it came with PHP5.3.3 and that wasn't good for our website, so I successfully (so it seemed, anyway) installed PHP5.6.7 and successfully registered it with Plesk. For the ...
0
votes
1answer
30 views

How to disable hidden key of wifi network Access Point [on hold]

I am using Raspbian. The problem arised when I changed my wifi AP's hidden key by inserting the following line in wpa_supplicant.conf scan_ssid=1 When I try to view the info of wpa_supplicant file ...
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
1answer
1k views

gstreamer: no element >>x264enc<<

I want to encode a videostream to h264. But when I start the gstreamer program I get the following error. No Element >>x264enc<< I installed the gst-plugins-bad, gst-plugins-ugly and gst-...
0
votes
1answer
51 views

Can I distinguish between swap thrashing and non-swap high IO latency somehow?

My system becomes much, much less responsive, every time I clone a VM image. I'm using virt-manager, and I can see the IO is performed by several qemu-img convert threads. I tried to gather some ...
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 ...
0
votes
1answer
34 views

How does the task list continously accept processes?

I'm a research student whose work involves processes, and I had a question about Linux's task list. From what I understand, as long as the computer has booted up, it is accepting processes. The ...
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
1answer
47 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). ...
1
vote
1answer
22 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),...
3
votes
2answers
1k views

Central user management with multiple servers with SSH keys, LDAP?

the number of my servers and users is growing and I would like to adopt a central database to manage users accounts. I'm thinking about OpenLDAP, but I have a question. Is it possible in LDAP to ...
-2
votes
0answers
48 views

Linux suspicious activity

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 ...
11
votes
1answer
2k views

Accidentally renamed tar.gz file to a non tar.gz file, will my file be messed up

I was trying to move a tar.gz file to /opt directory and accidentally move it /root/opt thinking it was the right place. But there was no /root/opt, so the tar.gz file renamed to opt inside the /root ...
1
vote
1answer
910 views

Start Jar in Linux “javafx/application/Application”

System Information is: sudo update-alternatives --config java Selection Path Priority Status ---------------------------------------------------------...