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.

1
vote
1answer
20 views

the sector means logical sector or physical sector?

In dmesg, I saw this log. blk_update_request: critical target error, dev sdx, sector 123456 I want to know the 'sector' here means a logical sector or physical sector? because I want to know the ...
0
votes
0answers
11 views

Login loop after changing window manager with dconf-editor [closed]

I'm using ubuntu mate 18.04 and I compiled/installed i3-gaps. In dconf-editor I remember deleting a line that said "window manager" under org.mate.session.required-components and I think that was ...
1
vote
1answer
18 views

compressing a folder tgz , encode to base64 and send over the fly

I am trying to compress a folder, encode to base64 and send it over the fly , but I am getting a error tar: Cowardly refusing to create an empty archive tar -czf Pictures | base64 | nc ...
0
votes
1answer
25 views

Looping through all files, skipping some dynamically

rather new to unix. Trying to create a script to loop through all files and subdirectories given a directory and printing them. I would like to be able to skip certain directories dynamically though. ...
0
votes
0answers
10 views

disable touchpad through xinput

I am trying to disable touchpad through xinput. But I cannot find the id for my touchpad... Here is xinput list: Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ ...
1
vote
1answer
31 views

Distributed build systems

Which tools for distributed builds are currently in use in popular Linux distros, like Ubuntu, Debian, RedHat, etc.? For example, we have a huge amount of packages with dependencies and try to ...
0
votes
1answer
25 views

Multiplex multiple services on same port discriminating by source port

imagine that on the same host I have 2 services: an ssh daemon listening on port 22 a socks5 proxy listening on port 1080 I want to multiplex both services using only port 22 but depending on the ...
1
vote
0answers
26 views

Having trouble with connecting to MySQL server [closed]

I'm using a Dragino LG01 gateway which is running a Linux system. I want to connect the gateway to a MySQL database (using XAMPP). There is a tutorial for doing this but I am still having problems. ...
-1
votes
0answers
25 views

As a beginner wanting to learn linux where should I start? [closed]

As somebody who wishes to learn linux in the hopes of venturing further into the cyber security aspect I am looking for some information on where to start. What exactly should I focus on or research? ...
0
votes
0answers
16 views

eaddrnotavailclient exception in ubuntu

I am trying to create 100000 client concurrent connections to EMQTT server but i'm facing eaddrnotavailclient exception. The connection is reaching maximum upto 32420. I have configured as per erlang ...
0
votes
1answer
30 views

Windows 10 and linux mint on one ssd disk, how to restore windows partition without losing linux?

I accidentally entered sudo mkfs.ntfs /dev/sda1 in terminal, and now i am unable to boot with Windows. I have Windows and Linux installed on ssd. On startup i have screen where i can select which to ...
3
votes
0answers
28 views

How do we pronounce a linux path eg. “/sys/kernel/debug/”? [closed]

What is the correct way to pronounce a Linux path? For example, if we take "/sys/kernel/debug/", I have always been calling it as "root-sys-kernel-debug". However, I've heard of many different ways ...
-1
votes
0answers
26 views

Opening ports on my computer to the internet [closed]

I want to run a server on my desktop, that is accessible from the internet. How should I do that? I've created a node server which runs at port 4522, but when I use a browser to access the server, ...
2
votes
3answers
180 views

How to get single character after space?

How can I obtain below output? I want the first field as it is and a single character after space. echo "Hello world" Hellow If it also has a 3rd field than the beginning character of the 3rd field ...
1
vote
1answer
15 views

How can I use a for loop to run a command over several files with unique output files? [closed]

I need to run a command with the below syntax for 1000 files in a directory and save the output to a unique file for each iteration. command universalinputfile variableinputfile > outputfile for ...
0
votes
1answer
25 views

GNU Parallel facing silent exit and invalid option error

I tried performing the full installation from: http://git.savannah.gnu.org/cgit/parallel.git/tree/README The installation was successful. It's working well when installed on Mac OS but on Amazon ...
2
votes
1answer
142 views

How to copy the contents of all files with a certain name into a new file?

What I want to do is search for all the files whose name meet a certain requirement (starts with 's', followed by either a '1' or a '2' and end with 'sh') and then copy the contents of all those files ...
0
votes
1answer
36 views

Can't access neither Microsoft's Windows nor BIOS [closed]

I wanted to try Gnu/Linux pop os, so I tried to enter the BIOS by pressing f2 (my laptop is a dell inspiron 15 7559, but I still tried every common key). For some reason I couldn't enter the post ...
0
votes
1answer
36 views

Cannot run/install Linux on AMD based ThinkPad E585

I am not able to run/install Linux on my Lenovo ThinkPad E585. I tried both a full installation and running from the USB stick. All I get is: GRUB starting from the USB stick. Select Linux installer ...
0
votes
1answer
41 views

I deleted my files with git rm, but i also commited them, how to get them back?

I ran git rm on some files thinking that they will be removed from the bitbucket repository, and i also commited them, after that i checked that they disapeared from the bitbucket repo, but they were ...
0
votes
0answers
14 views

Linux 14.04 and BLE communication

I want to develop an application in Linux 14.04 that will communicate with Bluetooth Low Energy (BLE) devices. Do I need to connect any device on my laptop in order to discover BLE devices ...
1
vote
0answers
15 views

How to get rid of keyring Chrome pop-up when I do not know the original password

Everytime I start up Chrome on Linux Mint, I am greeted by up to four pop-ups saying "login to unlock keyring". I read an answer here on how to get rid of the keyring pop-up however it requires ...
0
votes
1answer
22 views

Shell Script - Ping and create folder from list of servers

I'm trying to create a script to ping a list of servers, and it will write the result to a text file, then it will create a folder to the list of servers. FILENAME="hosts" while IFS='' read -r LINE |...
0
votes
0answers
26 views

U-Boot Falcon Mode ft. RFS

I am developing a system for BeagleBone Black. I am using Yocto Project to generate U-Boot, kernel and RFS. In order to reduce boot time of this system, I am trying to set up U-Boot Falcon Mode. I ...
1
vote
1answer
30 views

Modify grub to dual boot fedora with windows 10

I am trying to dual boot fedora with windows 10. I am new to linux. I have found this code to be written in 40_custom file in grub. menuentry "Windows 10" { set root='(hd0,1)' chainloader +1 } ...
0
votes
0answers
27 views

kernel does not boot because of rcu_sched self-detected stall on CPU

I'm using a Cubox-i with a self-compiled kernel (previously version 4.19.4). When I tried to upgrade to version 5.0.7 I get the following problem while booting, and the kernel never comes up. I have ...
0
votes
1answer
9 views

Dual boot going straight to fedora without giving options

I have a laptop with windows 10 in it. I have installed fedora 29 in parallel to this windows 10. I wanted to create a dual boot system but now whenever I switch on my laptop, it directly boots via ...
0
votes
0answers
17 views

When shell executes a command in child shell how is output passed from child shell and is shown on parent shell [duplicate]

When ever we execute a command say ls -l, a new shell is spawned with fork() and execve() executes your command. Now my question is when this thing complete and child shell shutdowns how is the output ...
0
votes
0answers
16 views

Can't Undelete Folder with TestDisk

Accidentally Deleted a folder which contains backup of camera (nearly 70GB). Tried to Undelete it via TestDisk but instead of undeleting folder it simply creates a file named (backup1) smilar to that ...
0
votes
0answers
21 views

localhost kernel: appex: not cloning BAD SKB: head=xxx

My CentOS 7.6.1810(Core) always restart automatically. in the /var/log/messages there are many logs: localhost kernel: appex: not cloning BAD SKB: head=fff....
0
votes
0answers
32 views

how to ping (multicast) between two Gnu/Linux PCs

Firstly, I don't have much idea about multicast in Gnu/Linux. Is there anyway to assign fixed multicast IP address on both PCs (E.g. fixing unicast IP address in PC), and how to enable multicast in ...
6
votes
1answer
220 views

Huge performance difference of the command find with and without using %M option to show permissions

On my CentOS 7.6, I have created a folder (called many_files) with 3,000,000 files, by running: for i in {1..3000000}; do echo $i>$i; done; I am using the command find to write the information ...
-1
votes
0answers
29 views

replace xml attribute value using shell script

I want to replace the value "04/14/2017 20:04:44" to this "04/14/2017 19:59:44" if the value is in the range of "04/14/2017 20:00:00 to 04/14/2017 21:00:00" My xml file sample below: <...
0
votes
1answer
42 views

systemctl enable tmp.mount

Consider the practice of mounting the /tmp directory on a tmpfs memory based filesystem, as can be done with: systemctl enable tmp.mount And consider the following: one justification: The use of ...
1
vote
0answers
46 views

make: *** No targets. Stop. error when trying to build Linux Tree Directory

I just start contributing on Linux Kernel. I am following this guide https://youtu.be/LLBrBBImJt4?t=1052 . Up to that point I did required changes. Run the script to check for the code and it was ...
0
votes
2answers
51 views

Run command from sudo su

On a machine I (tlous) have been given access to open a shell as another user (serviceAccount) Executing: sudo su - serviceAccount has the desired effect of opening a shell as this serviceAccount ...
0
votes
0answers
21 views

Installed new Linux on HDD having a second Linux on SSD - possible sharing of root/swap partitions?

I got a bit confused after installing Linux Mint again, this time on my HDD instead of the SSD. I have not deleted the old (on the SSD) yet because I am worrying that "root" and "swap" might be shared ...
2
votes
1answer
36 views

linux mint 19 cinnamon cpu temerature goes crazy!

I've just installed the mint 19 cinnamon on my acer aspire 5830TG as a second OS alongside with win7 and immediately have a very high temp readings: $ sensors coretemp-isa-0000 Adapter: ISA adapter ...
0
votes
0answers
27 views

Facing issue in ssh for USB0 Interface buildroot

I am working on building Custom Os using Buildroot for beaglebone black. Configurations: Linux kernel version 4.19.29 I have enabled the Dropbear for SSH. The Script to load the drivers at boot ...
2
votes
1answer
128 views

How to get mount information of host inside a docker container

I need the mountpoints of all disks attached to a host inside a docker container. The mount information is available in /proc/1/mounts file, but I cannot access that file on all OS. When I run the ...
1
vote
0answers
24 views

Create custom page for lock

I'm new to DD-WRT v3.0-r39469 std (04/10/19) so I have several questions! I want to make a custom LOCKING PAGE in the domain 127.0.0.2 in my network, is it possible? I ran the page to which I wanted ...
1
vote
0answers
30 views

What prevents page migration?

OpenSUSE 42.3, Kernel 4.4.175-89-default Running memory bandwidth intensive applications I realised the following behaviour: The application uses ~55% of the physical memory of a NUMA system with 2 ...
2
votes
1answer
26 views

Rsync just structure and specified folders

I have a file structure as follows. Sites -------------------------------------- | | | | | | |...
0
votes
2answers
44 views

Why does my find (+ sed) command work in the terminal but not in a makefile?

I have the following command: find stdlib/main -type f -exec sh -c "echo {} | sed -e 's/stdlib\/main\///g' -e 's/\.q//g' -e 's/\//\./g' -e 's~^~/resource:\"{},~g' -e 's/$/\"/g'" \; The goal is to ...
1
vote
1answer
26 views

Where is CONFIG_HZ defined?

I'm in the middle of reading the whole Linux 5.0.7 source code, and I've noticed something strange. I'll refer to linux as the parent directory here, correct me if the community uses some other naming ...
0
votes
0answers
27 views

How do I code this script to fork and submit 2 processes to run simultaneously?

A little background the script below runs every 10 minutes on a secured server through as a Cron job. I would like to code this to fork or create a child process to run the contents of the code ...
0
votes
0answers
25 views

Any way to interpret string representing an integer or operation?

Lets say I have this string one plus two Is there any way we can interpret this as 1 + 2 faster than going into some conditions checking word per word and testing it if it equal something in a given ...
-1
votes
1answer
34 views

file -b command return on sticky bit files

I am trying to understand why the file -b command is returning a certain value(s) when the sticky bit is set. When I run file -b <dir> where dir has its group set to g+wrs, file -b returns ...
1
vote
1answer
58 views

How Linux finds out about illegal memory access error?

I have a question about how Linux traps memory access errors. As far as I know, a user space program doesn't need to ask operating system every time it wants to access memory, now when the process ...
3
votes
1answer
65 views

Linux Redhat 7 : How to set a shell option globally / system-wide?

I'm having some troubled time trying to figure out how to turn on the xpg_echo option of the bash for every shell that will get run on my Linux RedHat system (7.4). I know I can have what I need (the ...