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
14 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
0answers
28 views

Parameters to shell script are being replaced in internal awk command [on hold]

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
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 ...
0
votes
0answers
25 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
1answer
49 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?
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 ...
0
votes
1answer
17 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
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 ...
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
0answers
30 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
2
votes
1answer
25 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 ...
0
votes
0answers
13 views

Is usbtop accurate?

I am trying to see how much bandwidth is being used up by my webcam. Its raw video YUV2 at 1920x1080 so I expected roughly 20MB/s. usbtop gives me this: Device ID 2 : 141.73 kb/s ...
-2
votes
0answers
32 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.
1
vote
0answers
6 views

systemd sleep.conf: perform IdleAction only on battery

When I'm running on battery power, I'd like to have IdleAction=suspend-then-hibernate. However, if mains power is connected, I'd like to have IdleAction=ignore. How would I go about setting this up?
0
votes
0answers
6 views

Triggering “lid closed” when changing dock / external power connection

I want my laptop to respond as follows whenever the lid is closed: Docking - ignore Connecting external power - lock Otherwise - suspend-then-resume In my sleep.conf I have: HandleLidSwitchDocked=...
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 ...
1
vote
3answers
39 views

How to install multiple RPM packages using Shell script and by taking it from comma separated input file? [on hold]

I have to install multiple packages using shell script and rpm (package) name is in the input file. I have done it in this below way. My input file is path is = /mstr/mstr_input_file.txt MY Script ...
0
votes
2answers
18 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 ...
4
votes
1answer
151 views

Are the attributes set by the “chattr” command implemented as extended attributes?

The chattr command is used to set some attributes for a file (for example: append only (a), immutable (i), etc.). Are these attributes implemented as extended attributes, or are they their own ...
3
votes
1answer
55 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/...
1
vote
1answer
30 views

Realtime, SCHED_FIFO, CPU_SET()

I'm trying to assign two real time processes to two cpus(one each). I'm using SCHED_FIFO scheduling policy. I'm doing the following things: adding "quiet splash isolcpus = 6,7" at ...
0
votes
0answers
36 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:...
-1
votes
1answer
15 views

How to Change Terminal Directory to Another Locations Like (D,E,F Directories )?

You are looking on Image STUFF, OS,217GB Volume, Da14tes7,Digital Nock... I want to work my terminal with those drives, But i cannot find how to movie My terminal Directory To those another Drives
-9
votes
0answers
27 views

Count the number of character and line in a file without using wc command [on hold]

We need to implement wc command. A file needs to be passed as argument and the shell script should also support -c and -l .
0
votes
1answer
31 views

What are the “non-extended attributes” (as opposed to “extended attributes”) in Linux?

Linux has what is called "extended attributes", but I am wondering what are the "non-extended attributes", I am assuming they are things like the file permissions, file owner, file dates, etc. Am I ...
1
vote
0answers
20 views

How to tell Linux where initramfs is in RAM

I'm trying to boot a Linux kernel running on top of Xen with a initramfs copied into RAM by the bootloader. In the device tree I took out a chunk of memory so the kernel will not overwrite the area ...
1
vote
1answer
17 views

How to use 'find' and 'cpio' to exclude parent directories

I want to copy over all html files in a nested directory but I want to prevent the parent folders above it from being generated as well. That is if my source path is /project/ng1/src/templates/**, ...
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
votes
0answers
6 views

Can I specify domain-name name-server mapping for resolved

Currently, I'm using dnsmasq to map a domain-name to a specific name-server. Is there a way I can do the same using resolved? For example for dnsmasq, I've configured my dnsmasq as follows: listen-...
0
votes
0answers
16 views

How to increase resolution of kali Linux in virtual box on a 5120x2880 screen? [duplicate]

I installed the latest version of kali linux on virtual box. I have a 5120x2880 and the icons and text are too small. Kali Linux can't get full screen permanently too. I've tried this method, but it ...
1
vote
0answers
7 views

can I replace bzImage and ko files in installed modules seperately?

I'm currently trying to debug a kernel module, after installing the kernel, I'm trying to change the kernel a little and a single module a little and see how things work. when I changed the kernel ...
0
votes
1answer
26 views

nothing happens after typing in # grep -iw open_by_handle [on hold]

i had instruction to go into the command # grep -iw open_by_handle /etc/audit/audit.rule and it either has nothing happen and just prompts a new command line, or if I just put in /etc/audit/audit....
0
votes
0answers
9 views

How to control a wifi smart plug from laptop? [on hold]

Is there a method to control a smart plug from a Linux laptop? Smart plugs are generally intended to be controlled by smartphone or tablet, in Android. It could be useful to do this from a laptop. ...
0
votes
1answer
41 views

Passing line from text file into script in a for loop

Below I have a script that is working and is used to find file sizes in our Object Storage Architecture running on Ubuntu. The issue I am having is the script is written for checking one account at a ...
0
votes
0answers
12 views

Disable Wayland for Fedora 28 login screen

I've installed Fedora 28 from the LXDE spin. I am running AnyDesk to enable remotely logging into this system, which only supports X11, and not Wayland. LXDE itself uses X11, so that's fine. However,...
0
votes
0answers
24 views

Create bootable sd card with parted

I executed the following script to create a bootable SD card, but the raspberry pi doesn't boot. The sd cards are fine, they arrived today in the mail and badblocks found none. What am I missing? #!/...
0
votes
1answer
27 views

How can I find out what my default gateway should be?

I have a linux (RHEL 7) server on a network and the default gateway is set incorrectly. How can I find out what the default gateway should be, without asking a Network Administrator?
1
vote
3answers
54 views

bash + find specific word in space-delimited string

The parameter list include the following example values # echo $list master01.montil131.com worker01.montil131.com worker02.montil131.com In order to find the word that include master string I do ...
0
votes
1answer
49 views

How should we understand symlinks under `/proc/pid/fd`?

They seems more like a link to inode instead a link to path. What does the readlink() mean to them, the canonical path of the inode from the calling process's root directory? What happened when a ...
-3
votes
0answers
32 views

when i change my directory permission, i lost my data that directory had.,how to get it back(in deepin linux) [on hold]

When i change my directory permission to only read and after change it back to default permission it had,Then i lost my data that directory had.So now I need to get back them.
0
votes
1answer
26 views

Docker containers can't communicate on the outside network

We have a Docker host (A virtual machine) hosted on VMware. This docker host has two network interfaces. ens160 and ens192 ens192 is configured with a normal IP address ens160 is configured without ...
-1
votes
1answer
34 views

How to install the latest SaltStack packages for CentOS 7

I am trying to install the latest version of the salt-minion package (2018.3.1). But in my yum repository, the latest available version is 2015.5.10-2.el7. yum --showduplicates list salt-minion ...
-2
votes
1answer
43 views

How to reset entire system permissions back to default in Linux?

I found I've a kind of messed up most part of my system permissions. Some places that only owner should have access is now exposed to world. How can I reset the folder permissions to default like i ...
-3
votes
0answers
25 views

Preseed partitioning [on hold]

I have been trying to get a preseed partitioning working, I haven't had any luck. I have followed many guides online to name a couple: https://cookingclouds.com/2012/07/17/ubuntudebian-...
-1
votes
1answer
29 views

PAM module, which logging failures password [on hold]

Exists PAM module, than logging failures password in syslog? some like this: Feb 19 07:01:31 machine su[2596]: FAILED su for root by testuser with password [123456qwerty]
-7
votes
0answers
23 views

Create a file and highlight the particular given line word and the specific given occurrence of a word [on hold]

Linux question using grep and sed commands are any other Linux commands
0
votes
1answer
32 views

mkpasswd -m sha-512 password -s “22446688” [duplicate]

I have a question on mkpasswd command result, I must use the same word in this to reproduce the same result hashed over and over, but what happens if I left without the -S option this will create a ...
2
votes
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 ...
-5
votes
2answers
42 views

rkhunter aid possible rootkits: 5! and 6 warning files [on hold]

I suspected I had a rootkit on Windows, so I booted Kali from USB drive but I never thought i would find 5! Here are the results from rkhunter root@kali:~# rkhunter --check [ Rootkit Hunter version ...
1
vote
1answer
57 views

Debian Fn key not working on Matias witeless keyboard

I have a Matias wireless mac keyboard (US layout) and while in Mac the fn keys work fine, for example, Fn + F12 works as volume up, however I have switched to linux on my desktop and in Debian (...