Stack Exchange Network

Stack Exchange network consists of 174 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

PAM File Modification for Google Authentificator

i use the google authenticator for the ssh authentication, but i use a publickey + authenticator or a password + authenticator (when no publickey is defined it should be ask only for password, but i ...
-1
votes
2answers
17 views

Urgently need help (sed command)

I want to replace 9 3 * * 3,6 by shivam using sed command. testcron is the file name. I am trying this $sed 's/"9 3 * * 3,6"/shivam testcron NOTE: testcron is the file name.
0
votes
1answer
19 views

Linux - Checking if user has entered numbers and letters

The script I am trying to create should ask the user to enter a password. This password will then be checked if it contains a capital, characters and numbers This is all I have so far before I got ...
-1
votes
0answers
9 views

What is the suitable disk IO scheduler for an email server?

What is the suitable/recommended disk IO scheduler from cfq,noop,deadline for a server which runs an email server ? What are the reasons behind to choose the relevant option ?
0
votes
0answers
19 views

When i plug in usb camera i get 2 devices

When I plug in the camera to Linux then I get 2 devices /dev/video0 and /dev/video1 Is that normal? Odd numbered devices do not work. /dev/v4l/by-path looks like that: @pci-0000:00:14.0-usb-0:14:1.0-...
1
vote
2answers
21 views

linux top load average seems too high

Following this https://unix.stackexchange.com/a/279354/108702, I ran; lscpu | grep -E '^Thread|^Core|^Socket|^CPU\(' CPU(s): 8 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): ...
0
votes
0answers
10 views

Importing ZFS pool takes forever on boot

I recently moved my Gentoo (OpenRC) root to ZFS, and so far everything works great, except for one thing: importing zpool takes a long time (one-two minutes) on boot. After the import is finished it ...
1
vote
2answers
71 views

Grep Showing Extra Lines

So I have a text file: 4556 4618 7843 8732 4532 0861 1932 5122 3478 893* 6788 6312 5440 3173 8207 0451 67886 6011 2966 7184 4668 3678 3905 5323 2389 4387 9336 2783 239 235 453 ...
0
votes
0answers
14 views

Elementary OS crashes on shutdown

I know that there are similar questions to this but none of the given solutions work. I've tried migrating from Windows 10 to Elementary OS and even though installation process works fine (downloaded ...
-1
votes
2answers
45 views

What is Games in man page

I'm walking through the manual of man-page. I don't understand the importance of the 6th section Games in Man-pages. What it's really mean?.
0
votes
1answer
27 views

Will swap file engage automatically when I write too much to /dev/shm

Text analytics programming today. My program is going to write about 45 million small temporary files to /dev/shm and their size estimate is 177.0 GB. I'm going to delete them soon after the next ...
1
vote
0answers
6 views

Interpreting AUFS mounts

My question is the opposite of most on AUFS. I don't need to know how to mount two or more directories in a union. Instead I need to understand what I am seeing on an existing system. / aufs ...
0
votes
0answers
17 views

Linux Mint 19 cinnamon stop job at shutdown

on my Linux Mint 19 "Tara" system with cinnamon desktop, when I shutdown via the GUI, the system halts for 1 min and 30 seconds, and a text says "A stop job is running for Session c2 of user ... (1min ...
1
vote
0answers
8 views

Corruption on BCache uppon Kernel Update/Upgrade

After using a write-around bcache on the root device of an old laptop for more than a year (HD + SD card), I finally found out that some severe filesystem corruptions I was facing -- which lead me to ...
0
votes
0answers
12 views

fingerprint-gui on Linux Mint 19 “Tara” cinnamon works but not on first boot or in software center

on my Lenovo Thinkpad X1 Carbon 3rd. Gen., fingerprint-gui works fine when locking the screen or requesting sudo in terminal. It doesn't work when I freshly boot up the system at first login, and it ...
0
votes
0answers
38 views

How to restrict access to terminal

I have a Raspberry Pi running Raspbian graphical desktop which I have locked down to restrict the user to a limited number of applications. Everything has been removed from the menu except these ...
0
votes
1answer
35 views

Where should I store my application files (data, cache, logs, crashes, etc.) [on hold]

Although I did some research on this subject, I couldn't reach the exact information I wanted. Actually, not exactly disclosed, everyone approached in a different way. For the: Filesystem Hierarchy ...
0
votes
1answer
62 views

How to strip out white space of a filename

Opering System : RHEL 7 Bash Script: V_No=10.8.3 BUILD_VERSION=`echo ${V_No} | tr ' ' '_'` echo "File Name: Dev-${BUILD_VERSION}.jar" output: File Name: Dev-10.8.3 .jar expected output: File ...
0
votes
0answers
19 views

Unable to start the hadoop datanode hadoop 3.1.1 in ubuntu 18.04 [on hold]

I recently install the Hadoop 3.1.1 to my computer in single cluster mode.after do all the configuration for hdfs-site.xml,yarn-site.xml,core-site.xml,mapred-site.xml and hadoop-env.sh following ...
1
vote
2answers
49 views

Is it possible to disable ext4 case sensitivity?

With NTFS you can enable or disable case sensitivity. Is there a way to do it with ext4 in Linux?
0
votes
1answer
39 views

Cannot mkdir -p with variable representing relative directory path in bash script [on hold]

I open command terminal and change directory to Desktop cd ~/Desktop/ I create file call myScript.sh touch myScript.sh I open myScript.sh with vim and add code #!/bin/bash mkdir -p ~/Desktop/a/b/...
2
votes
1answer
17 views

Why the output of ls is different for the same directory /dev/fd/ based on the method of referencing this directory?

cd /dev/fd/; ls Gives me output that I expect: 0 1 2 255 But: ls /dev/fd/ Gives different output that I don't expect: 0 1 2 3 Why? What happens here? What happened to file descriptor 255? ...
0
votes
0answers
12 views

Information delay per-layer in tcp/ip stack

I'm searching for a tool that permits me to calculate the delays at each layer in the TCP/IP stack using linux.
-1
votes
1answer
25 views

Finding and replacing text when there are custom elements within [duplicate]

I have about 450 html files I need to edit. I have the directory they all are in, so that narrows things down from the perspective of searching. What needs to be changed is a bit of known text, some ...
0
votes
0answers
25 views

moving groups from group 100 to group 1000 [on hold]

The question is the title above. I've tried the mv command but that only moves files and directories.
2
votes
0answers
10 views

Modify apache module mod_substitute source code [on hold]

I am interested in writing an apache module that can modify the response content. Basically I want to replace a certain string in response with something else. mod_substitute is a good contender for ...
4
votes
1answer
43 views

Inconsistency between “getent group” and “getent group <groupname>” – why?

Question How is the following possible? $ getent group | grep docker $ getent group docker docker:x:600: Note that the first call doesn’t return anything while the second one does. grpck doesn’t ...
0
votes
0answers
22 views

Duplicate screen Xorg over network

I'm looking for a way to duplicate my desktop on a network. (Something that would work on a web browser client would be amazing.) I tried to use vnc / x11vnc but quality/framerate is too low. (cpu ...
-1
votes
0answers
9 views

Compile device tree overlay in linux source [on hold]

I am wondering how to compile device tree overlays using linux source files. DTC should be build, because it compiles dts files using: make dtbs. How can i use it for dtbo compilation?
1
vote
1answer
32 views

Update of /etc/resolve.conf needs restart of application

I am working with an embedded linux Target (ARM) and have the following problem: When /etc/resolv.conf is updated, while a process is running (e.g. C Program using gethostbyname()) the running process ...
0
votes
2answers
34 views

X forwarding over ssh, issues with virtualbox

When trying to open virtualbox GUI over a forwarded session, I get the following error: steve@remoteHost:~$ virtualbox OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled ...
1
vote
1answer
46 views

Linux grep for file starting with certain letter AND contain certain words

Trying to search a file directory for file names beginning with "h" and containing "enu"? So far this is what I've got, I just don't know how to handle both grep statements in one command line? find ...
1
vote
1answer
12 views

Is it possible to cache pip downloads in a http cache server?

I have a virtual linux machine with python2 and pip installed. I want to save bandwidth by caching pip downloads in a http cache server and use this cache server in other machines. The functionality ...
1
vote
2answers
45 views

Diff between two csv files based on the column

I have two files file1.csv and file2.csv. Below are the contents of file1.csv AL.jar;d8c06ebedd7954681f34ab5c94fdc4fb AR.jar;9a553dd203d0979aa60004e19cc98c12 BI.jar;8022f6c5f83ba040394ff0b0a0323e8e ...
1
vote
1answer
27 views

Remove files in linux with different folder files to delete in a folder as particular folder

I want to remove multiple (all) files with different suffixes (.log,.bin) in a particular directory (/home/username) in a one-line command. How could I do that?
-2
votes
1answer
25 views

Only USERID, PID, TIME, and COMMAND for specific user Shell Script

I have to get Only USERID, PID, TIME, and COMMAND for a specific user. I have tried ps -u user1 But that display PID TTY TIME CMD, but I dont want the Field TTY.
1
vote
0answers
16 views

Does Microsoft WLinux has full support for network and devices? [migrated]

I have been testing Microsoft's Windows Subsystem for Linux (WSL) which is available on the Windows Store. Does WSL have full support for networking and devices? For instance, can I expect commands ...
0
votes
1answer
15 views

Create Linux USB that can boot from any computers like the liveusb installer

From my understanding, when installing Linux on a USB, it's only guaranteed to boot on that machine, unlike the liveUSB installer. So my Dell laptop already has Linux on it's internal hard drive. ...
-2
votes
0answers
36 views

Kali Linux Wireless Driver installation [on hold]

I've been trying to install the driver for my kali linux distro and have downloaded the files needed. Checked online and saw that the Makefile needs to be executed for the driver to be installed The ...
1
vote
1answer
20 views

Using command (dd if=/dev/mmcblk0p1 | sha1sum) while running from initramfs

I have an opensource airgapped raspberry pi project seen at the following link: www.privatekeyvault.com I have provided a method for installing LUKS full disk encryption seen at the following: https:/...
4
votes
1answer
54 views

Is linux kernel implemented tty always render data using UTF-8?

It seems so. I read IUTF8, but the document only said it allows you to handle input as UTF-8 when doing line-editing. But what about output? If you use a GUI Terminal, it usually allows you to ...
1
vote
0answers
12 views

What do the ntp options “restrict default nopeer” do?

NTP version installed: ntp-4.2.6p5-5 I'm trying to understand the usage and meaning of the ntp restrict along with restrict default nopeer Quoting the NTP documentation: nopeer: Deny packets ...
1
vote
0answers
9 views

PTY allocation request failed on channel 0

My remote vm server's password has expired, i cann't change password. [user@localhost ~]$ ssh root@x.x.x.x root@x.x.x.x's password: PTY allocation request failed on channel 0 WARNING: Your password ...
0
votes
0answers
10 views

Creating calendar files in CentOS7 [on hold]

I'm attempting to create 3 text files that display last,current and next month. I'm not having any luck besides a lot of articles that explain different ways to use the cal command and print to the ...
0
votes
1answer
51 views

Linux switches to mysterious Kernel Buffer view everytime a new dmesg arrives

There is a mysterious tty that only reacts to sysrq, not to any other keyboard input. It started after I engaged SysRQ+F and SysRq+i. Every 30 seconds or so, Linux switches away from the current tty ...
0
votes
1answer
63 views

A strange process called “watchbog” is hogging my entire CPU and I can't get rid of it [on hold]

This process that has come out of nowhere is hogging my CPU and I have no clue what it is or how to get rid of it. You can see in the image below what it's doing: What is this process? How can I get ...
0
votes
1answer
25 views

How many page table the linux kernel maintains?

the kernel maintains a data structure, called a page table, that contains a mapping of a processes' virtual page addresses to real page addresses in memory. I read a book with the sentence above, I ...
-1
votes
0answers
31 views

How to create an encrypted partition and how does Linux then decrypt it [duplicate]

I'm still very much in the learning phase of Linux especially for the use in embedded systems. My intention is to create a separate encrypted partition on an SD card, possibly by using dm-crypt. ...
1
vote
1answer
25 views

How do I cd and then ls in my cshrc

I want to be able to cd into a path and have it ls automatically. I have tried doing a function such as cs() { cd "@a" ; ls} but this results in an error saying "badly placed ()" so I do not think I ...
1
vote
2answers
17 views

On Solaris I get good id mapping..on linux not,why?

I use an Active Directory server for authentication,Solaris works fine following this Howto. All works,and my user "user1" get the right UID assigned on Windows AD,which is 10000. On linux I follow ...