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.

0
votes
0answers
3 views

send cron output to a filename that is derived from the program name

I tested the following with no luck. Any other ideas? cron test, I would like to generate a stderr logfile name based on $0, but $0 value is "/bin/bash" why do I want this? Because some program ...
0
votes
0answers
5 views

Linux At Job Executes Immediately

I have a PHP web application that schedules Linux at jobs using the PHP function exec(). The scheduled task is another PHP script. Somehow, under certain conditions that I suspect are related to ...
0
votes
1answer
28 views

Remove duplicate fields with different data

Original file FinalResults.txt contains the following: loginName:name1 memoryInfo:jsHeapSizeLimit:2181038082 session:cabSessionID: sessionStartTime: loginName:name1 memoryInfo:jsHeapSizeLimit:...
0
votes
2answers
36 views

How to specify the headings for the fields which is specified in the awk statement?

Below code is my awk statement...I need to specify the headings for the each fields like name,age and phone_number in my output...How to give headings in the awk statement...How can i do that.. awk -...
-1
votes
0answers
8 views

How to list all the contents in the s3 with their column headings?

I have an S3 bucket and I use the aws s3 ls command to list the contents of the bucket. I use: aws s3 ls s3://project/js/cat And will retrieve all the contents. Is there any way that I can get ...
0
votes
0answers
4 views

Concurrent requests from node.js process are far too slow - is the OS limiting them

I have a node.js script, it makes a http request to a url N number of times using two different techniques. First it does it serially, then it does it using the node.js Promise api (all the requests ...
0
votes
0answers
6 views

X11 can run on ereader via ssh -X, but unable to use the touch-screen as the main display

I have successfully accessed X11 on a nook touch via ssh -X and started lxsession on a debian chroot. I tried being clever by making use of the omapflb driver. My intentions are to be able to use ...
5
votes
1answer
235 views

Why were “USB-stick stall” problems reported in 2013? Why wasn't this problem solved by the existing “No-I/O dirty throttling” code?

The pernicious USB-stick stall problem - LWN.net, November 2013. Artem S. Tashkinov recently encountered a problem that will be familiar to at least some LWN readers. Plug a slow storage device (...
0
votes
1answer
1k views

Yum not working at all

I ran the command yum clean metadata and then ran the command yum update. When I ran the yum update I now get the following errors Loaded plugins: product-id, security, subscription-manager This ...
0
votes
0answers
24 views

Permission denied issue while doing CD even after having group permission

I'm getting Permission denied while doing a cd into directory /tct/foxprod_t2b_002/cilin/cust_test/testcases/level1 and user is a member of this group; other users on the group can easily accessing ...
-1
votes
1answer
19 views

How does inserting new SSD will influence perfomance?

I have old 120GB SSD lsscsi -s [0:0:0:0] disk ATA GOODRAM 10.8 /dev/sda 120GB [1:0:0:0] disk ATA TOSHIBA DT01ACA1 A750 /dev/sdb 1.00TB [2:0:0:0] cd/dvd ...
0
votes
2answers
33 views

What is the default behaviour when we mount filesystem with `nodev` option?

I read this in "RH413 Red Hat Server Hardening" course that we mount the filesystems with nodev which then does not allow the special files/devices to be mounted from it. However, it did not show an ...
4
votes
1answer
323 views

linux audit events not passed to go-audit

We're attempting to use slack's go-audit tool to capture/process linux audit events. More info: https://github.com/slackhq/go-audit The issue is that the linux audit is correctly picking up events, ...
-1
votes
1answer
18 views

I have a cache partition i need to empty to save disk space

I have a squid proxy running on CentOS, when i run df -lh i can see that the partition /dev/mapper/VG_Cache-lv_cache is 100% full. I have been to VMsphere and added more space to the guest and this ...
1
vote
1answer
16 views

No module named yum CentOS6

I think I messed up my python config now yum wont work. I'm getting error 'No module named yum'. I have tried editing /usr/bin/yum and adding #!/usr/bin/python2.6 as the interpreter but this has not ...
2
votes
0answers
23 views

A linux “cp” command equivalent that does read/write threading and buffer sharing for increased throughput?

First, let me address your concerns. I'm copying from one slow drive, to another (different) slow drive. Blocking for reads on one drive until I write to another leaves a lot of room for improvement. ...
174
votes
3answers
448k views

How can get a list of all scheduled cron jobs on my machine?

My sysadmin has set up a bunch of cron jobs on my machine. I'd like to know exactly what is scheduled for what time. How can I get that list?
0
votes
0answers
16 views

How to empty the list of supplementary group IDs for a process?

When I create a child process, it inherits the supplementary gids of the parent. If the parent is a root, then the child has (0) as supplementary gid. This behavior is not desired. Is it possible to ...
1
vote
1answer
162 views

Writeback cache (`dirty`) seems to be limited to even less than dirty_background_ratio. What is it being limited by? How is this limit calculated?

I have been testing Linux 4.18.16-200.fc28.x86_64. My system has 7.7G total RAM, according to free -h. I have default values for the vm.dirty* sysctl's. dirty_background_ratio is 10, and ...
118
votes
11answers
554k views

Unix/Linux undelete/recover deleted files

Is there a command to recover/undelete deleted files by rm? $ rm -rf /path/to/myfile How can I recover myfile? If there is such a tool how can I use it?
0
votes
1answer
36 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
0answers
13 views

How to check a un-running CentOS installation system time or first start time?

How to check a un-running CentOS installation system time or first start time? I have a Server with two disks, sda and sdb, I found each has a CentOS on it. now I running the sdb CentOS system, I ...
3
votes
1answer
53 views

how to find ssh key in audit log file?

i've created ssh key for connecting two host (client 192.168.4.107 and server 192.168.4.106). on client-machine i've run this command and ssh connection works: ssh-keygen ssh-copy-id -i /root/.ssh/...
0
votes
0answers
11 views

How to display `top` results sorted by memory usage by a process in KB/MB?

I have known about top command. When I using this command, I got only the memory usage of a process in terms of PERCENTAGE(%MEM) only. Is there any option to get the memory details in terms of Bytes(...
0
votes
1answer
29 views

What would happen if a file have both regular permissions and ACL permissions?

If a file have a regular permission of read for user John, and also have an ACL permission of write for user John, what would happen in this case: Would the regular permissions only be applied (so ...
0
votes
0answers
27 views

Parameters to shell script are being replaced in internal awk command

I am using Red Hat Enterprise version 6.1. I am facing a situation in which parameters passed to script are being replaced in place of internal argument to an autorep command. Below is the command: ...
1
vote
2answers
1k views

ufw allowed port 9999 but connection refused

port is allowed however connection is refued? # sudo ufw allow 9999/tcp Rule added Rule added (v6) When I check status # sudo ufw status 9999/tcp ALLOW Anywhere 9999/tcp (v6)...
0
votes
0answers
13 views

FFT -> a simple algorithm to compute a derivative? [migrated]

I use a lINUX SYSTEM (UBUNTU, 12.04) a standard FFT package (DFFTPACK for slatec - based on gfortran now), and have used various simple algorithms for computing derivative based on FFT. However all of ...
0
votes
2answers
16 views

How to implement iptables on lxc-container?

I installed lxc-container (fedora 29 amd64) on my ubuntu 18.04 system. The linux container had no firewall command line tools. Therefore I installed iptables into my container and it installed ...
-1
votes
0answers
4 views

System wide default-deny (process whitelisting) via AppArmor

I wanted a quick check to see if my understanding of AppArmor is correct. AppArmor by default confines only those applications that have profiles defined. Any other application that tries to run ...
1
vote
2answers
1k views

pass answer to git command

I try to get "git pull". It is asking for username and password. How i can automate it? ➜ git:(master) git pull Username for 'http://127.0.0.1': username Password for 'http://username@127.0.0.1': ...
1
vote
3answers
42 views

Does a process that have the root user always have all of the capabilities available in Linux?

In Linux, a process that have a non-root user can have some capabilities assigned to it to increase its privileges. And a process that have the root user have all of the capabilities available, but ...
1
vote
2answers
73 views

sudo never works. I have no permissions on my computer [on hold]

I want to reinstall Linux Mint..... Many commands start with sudo and then apt-get or whatever. I am never able to get past this. Typical attempt: john@john-AY022AA-ABA-p6330f:~$ sudo apt-get ...
1
vote
1answer
35 views

how to get the number of inotify watches in use

I use inotifywait for event trigger which put file. When many files are watched by inotifywait, when max_user_watches is exceeded, the following error occurs. Terminating since out of inotify ...
0
votes
1answer
15 views

/dev/mapper/fedora-root is full

When I run df -h I get the following return: [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 983M 0 983M 0% /dev tmpfs ...
0
votes
1answer
38 views

Is there a tool in Linux to add an extended attribute to a file?

The getfattr tool is used to get the extended attributes of a file, but is there a tool to add an extended attribute to a file?
0
votes
0answers
19 views

Can the PCMan File Manager display the extended attributes of a file?

Can the PCMan File Manager display the extended attributes of a file? if not, is there a file manager in Linux that can do that?
0
votes
0answers
26 views

grub2 error disk hd0,msdos1 not found

I have googled a lot for this problem. I found this, but it didn't solve my problem. Other solutions suggest me to reinstall grub (run grub-install), which didn't work either. Here is what I am doing:...
2
votes
0answers
13 views

/sys/block/sd*/device/timeout not accurate

The default value for the timeout file for SCSI disks is 30, supposedly meaning 30s. In my dmesg logs, I find that the system is waiting 180s before timing out. Setting timeout to various values ...
6
votes
1answer
1k views

Unable to swapoff but enough physical memory is available

I have a weird problem with turning off the swap. The server has 192 GB of memory, 154 GB free. It's a Hypervisor running a number of Linux KVM Virtual Machines. When trying to: # swapoff -a ...
0
votes
0answers
11 views

CIFS directory listing hangs but able to read/write files

I am running CentOS7.6 and Windows Server 2012 R2 for SMB connection. I am able to mount volume but not it doesn't allow me to do a directory listing. I can do the directory listing on a folder which ...
-2
votes
0answers
31 views

Root password is not working in linux Box [on hold]

I have change the root passwrd couple of time in linux but i am unable to login to the account as root.Getting access denied.
0
votes
0answers
17 views

Recommendation for Remote controlling multiple machines [on hold]

Looking for a software recommendation for remotely managing multiple Linux VM's (Centos 6), even opening multiple at once. Im looking for something like NoMachine where you just install the app and ...
2
votes
3answers
10k views

How do I install/update drivers on Debian 9?

I just installed Debian 9 on my laptop, however Wifi isn't working and I'm not sure if my graphic card is either. I'm sure that it's just a lack of drivers, but I've never actually had to update ...
33
votes
7answers
47k views

How to recover a shell after a disconnection

Am doing some work on a remote CentOS 5.6 machine and my network keeps dropping. Is there a way that I can recover my hung sessions after I reconnect? EDIT: am doing some updating and installing with ...
-2
votes
0answers
29 views

Processing tables : homework [duplicate]

I am given with a table Teju|First|Sangamithra Theek|second|Dav Shalu|second|Sangamithra Paris|first|Dav Output should be Sangamithra|First|Teju Sangamithra|second|Shalu
0
votes
2answers
1k views

Will apt-get dist-upgrade -y confirm updates with verification issues?

I would like to have chron run my updates periodically and I have been told that the command: apt-get dist-upgrade -y should accept the updates. My concern is that numerous times when manually ...
2
votes
1answer
21 views

I want to add a variable for the results from the formula of one variable and the beginning of another variable

This is the file name in question OD_Orders_2019-02-19.csv I am trying to create a bash script to read into files with yesterday's date on the file name while retaining the rest of the files name. I ...
1
vote
1answer
1k views

Number of open file descriptors won't change when I set them in CentOS 6.3?

uname -a Linux lab.testing.com 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux ulimit -Hn 1024 ulimit -Sn 1024 ulimit -n 1024 I opened /etc/sysctl.conf in vi and added ...
23
votes
1answer
3k views

Why don't reads from /dev/zero count as I/O?

I am emptying out a hard drive on some Linux 4.x OS using this command: sudo sh -c 'pv -pterb /dev/zero > /dev/sda' And I opened another tty and started sudo htop and noticed this: PID USER ...