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.

Filter by
Sorted by
Tagged with
2
votes
0answers
18 views

/sys/kernel/slab/ contents :at-0000016 :t-0000040 :dt-0001024 etc. meaning

While examining some memory leak I found a strange for me contents of /sys/kernel/slab/ directory. It contains a list of directories: :at-0000016 :t-0000040 :t-0000832 :at-0000032 :t-0000048 :t-...
0
votes
2answers
38 views

Get logs for specific date (apache access log)

Can you on advice me on how to get specific time range from a file with output like: 81.200.176.13 - - [23/Mar/2021:09:34:03 +0000] "GET /crx/packmgr/img/thumbnail.png HTTP/1.1" 200 6235 I ...
0
votes
1answer
17 views

How can I make registered extensions for `binfmt_misc` persist across reboots?

How can I make registered extensions for binfmt_misc persist across reboots? Consider the following command, which performs a binfmt_misc registration: echo ':golang:E::go::/tmp/test:OC' | sudo tee /...
0
votes
1answer
28 views

List open files without lsof/fuser at a particular path

On a system that doesn't have lsof or fuser, is it possible to get a list of open files at a particular path? E.g., I'm looking to dismount /volume1 (a software RAID) to run e2fsck and can't, because ...
0
votes
1answer
23 views

Is there a simple way to use 'find -ls' without showing username/group?

I'm writing an audit trail on a release note. Currently I'm finding to-be-released items before the deploy and screenshot them. I use command below: find -ls | grep item001.class;find -ls | grep ...
0
votes
2answers
25 views

Change filename of multiple files at once in linux using single command

I have multiple files and want to add a character at the beginning of filename, add extension, and remove a word in the center of the filename at once using single command and I run this using bash. ...
0
votes
1answer
35 views

USB drive “is not a block device”

I am running Artix Linux on a System76 Galago. When I plug in a USB device it appears as /dev/usb/003/00X. Example lsusb output: Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 ...
1
vote
2answers
80 views

What's an anonymous process in linux?

I was trying to understand the difference between a task_struct's mm and active_mm fields, and came across a 20-year old email from Linus Torvalds which references the notion of "anonymous ...
0
votes
0answers
31 views

Resize /dev/root partition [duplicate]

I'm attempting to install Gentoo through VirtualBox. Well, technically I've already installed it, but I still need a WM. While trying to emerge Xorg , I ran out of space, and so I resized the /dev/...
2
votes
1answer
43 views

VFAT, Linux: Invalid file timestamps shown after a reboot

Just encountered a problem: when rebooting a Linux system, timestamps of all files in the mounted VFAT filesystem are shown in the incorrect timezone. It seems like a device starts thinking that its ...
0
votes
0answers
27 views

Linux user management

I am sorry if I am asking a very silly question but I am very new to security. Currently, I have a couple of requirements: Giving different level of access to a user on a Linux host like: L1 - ...
0
votes
1answer
17 views

Get UTC process start time in Linux

This ps command gives timezone-specific time: $ date Mon Mar 22 19:17:54 MSK 2021 $ ps -eo pid,cmd,lstart PID CMD STARTED 1 /init ...
0
votes
0answers
6 views

(The lack of) ZED board sound card support in GNU/Linux

I am trying to convince a sound card to work on a custom HW similar to an Avnet ZED Board. The original driver example was based on a heavily (a patch to vanilla is about 180k lines) modified 3.14.12 ...
0
votes
0answers
11 views

small icons in “show application” menu

I have pop os 20.04 and I have installed some extensions by using the gnome-shell extension. my problem is when I installed the "dash to dock" extension and placed it on the bottom of the ...
0
votes
0answers
6 views

Association error in Firefox browser on Ubuntu

Good morning everyone. For some unknown reason, since yesterday my attempts to open the downloads folder in my Firefox browser on Ubuntu 20.10 does not direct me to the place of the actual downloads ...
1
vote
0answers
24 views

ubuntu 20.04 Intel ax200 Failed to run INIT ucode: -110

i have an issue on a Fujitsu Board D3713-R2 with a AMD Ryzen Processor. The ax200 Module is populate on a adapter Board form m.2 to pcie. The module is recognized on the pci. 03:00.0 Network ...
0
votes
0answers
15 views

Switched from rsyslog to syslog-ng, but its not starting up

I wanted to switch logging from rsyslog to syslog-ng, but after configuration and startup, it faield to start up. This is the log file I am getting, but I cant find any clues there what is wrong: rrr-...
0
votes
0answers
7 views

Why my centos freeze

I migrated a virtual machine from xen to proxmox using clonzilla. My VM hangs after Probing EDD. What do I need to remove in it, or how do I enable a more detailed boot log so that I can fix and ...
-3
votes
0answers
19 views

Kali linux not update in Oracle VM virtual box

My linux not update in Oracle VM virtual box apt-get update Reading package lists... Done E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory ...
0
votes
0answers
36 views

How to make --exclude-glob work with this use case of lftp and fish shell?

I have a statement that looks like this: set cmd 'set ssl:verify-certificate false; open -u abc,def ftp.somewhere.com; mirror --only-newer --exclude-glob "{.git|node_modules|wp-config.php}" \...
0
votes
0answers
18 views

How to identify USB device / implement udev rule

I've recently started playing with a USB attached thermometer. I've got it attached to a Raspberry pi and it tells computer what temperature it is. Unfortunately the device is accessed via "/dev/...
1
vote
0answers
22 views

Can't kill process .gytm

Using Centos 7 I have a problem with a process that cannot be killed. When I run htop, it appears as "/usr/sbin/cloud-agent -k start" and when I run top the process is: .gytm When I kill ...
0
votes
1answer
27 views

How to - Connect Xbox controller using Bluetooth

If you try to connect a Bluetooth capable Xbox controller to a Linux device, chances are that it won't work, you'll see the connection state flip continuously between connected and disconnected ...
1
vote
0answers
12 views

log file to sql when a new line is inserted

I have some lines in a log that I need to insert into a db. I do this in a bash script using a variable $line. When I do INSERT INTO TABLE TBL_LOG(LOG_LINE) VALUES ($line) if $line contains any ...
0
votes
1answer
29 views

Why is my cursor so huge when using X11 forwarding?

I work on a Windows machine using Cygwin. Locally, my cursor renders just fine at the expected size: But when I connect to my remote machine, the cursor is huge: In this example I'm running xterm. ...
-1
votes
0answers
18 views

Page cache is same as any other page in main memory

How is page cache different from any other page present in main memory? I know page cache is also present in main memory so how is the ‘cache’ thing coming into picture.
-2
votes
0answers
24 views

Difference between Linux ACLs and Windows ACLs permissions [closed]

All-round Windows access control lists are much easier to implement than Linux ACLs but is there much difference in how they grant permission? Linux permissions uses UID and GID to correctly ...
0
votes
1answer
18 views

Unable to untar specific tar to its own DIR

I am trying to untar a file which has a *tar.gz extension to its own directory. tar -zxf /tmp/ranger/ranger-2.1.0-solr_audit_conf.tar.gz If I do like above, it's untaring all files to its present ...
1
vote
1answer
34 views

Can't set ulimit -n like I want to

I just want to set ulimit -n (per process max open files) and for the setting to survive reboots, but it's proving difficult. I don't know where else to change things to allow it to be set. root@z:~# ...
1
vote
0answers
23 views

Ubuntu UEFI entry point missing

I originally had Ubuntu 20.10 installed on my HDD without any booting problem. Days ago my HDD broke down and I decided to migrate to a new SSD. I installed Ubuntu 20.10 on the SSD just like before, ...
1
vote
1answer
21 views

vm.max_map_count for a running process?

Is there a way to determine vm.max_map_count for a running process? I'm using Ubuntu 18.04
3
votes
1answer
21 views

How to set hard conditions for source nat rules in nftables?

There is only one table on the server - "nat" and it contains only two chains: "prerouting" and "postrouting". IP forwarding is enabled. I'm trying to set more specific ...
0
votes
1answer
45 views

Linux - Check If a Variable is a Shell Variable or User Variable?

I have defined a variable by writing VAR1='abcd' into .bashrc file. I could list the all variables by using compgen -v command. I could check if any variable from this output by using printenv or echo ...
1
vote
2answers
38 views

No space but `df`shows otherwise

UPDATE See answer. Found the problem. I am downloading files that are quite large and place them under my /zhome/5f/4/122845/Desktop/cleaned_files. After some files, the system complains and won't ...
1
vote
1answer
26 views

If a file has a command copied in it, how can I extract that command from the file onto the active command prompt in a terminal?

If I have a rather large complex command, I often just cat it into a file. This works well in an SSH terminal where I can use the client copy and paste. But if I am directly on the terminal I don't ...
0
votes
0answers
17 views

Device missing from lspci on one linux distribution but not the other???!! How and Why?

Everything I've read says that when the Linux Kernel boots up, PCI devices are scanned and should be in /sys/bus/pci. I have two different Linux distributions, one shows a wireless device at 01:00.0, ...
0
votes
1answer
896 views

Error no matching VNC server running for this user

guys, I'm running Kali Nethunter but when I try to run it in graphical mode by running the command kex & I have this error: vncserver: No matching VNC server running for this user! Does anyone ...
-1
votes
0answers
24 views

Could not find `android` or `sdkmanager` binaries in Android SDK

I am in docker i setup from sdkmanager downloaded and unziped intro /usr/lib/android-sdk/smdline-tools/latest/ Than with sdkmanager : sdkmanager --list Warning: Observed package id 'build-tools;debian'...
0
votes
0answers
35 views

Install newer version Eigen on Debian Jessie

I am trying to build the catkin workspace of ROS on Raspberry Pi (Debian Jessie 8) following this instruction https://wiki.ros.org/kinetic/Installation/Source but encounter error error: static ...
0
votes
0answers
127 views

Wordpress site has been hit with gutenblock-64/stealth process

The process has been taking up a lot of resources and has been sending DDos(?) to other sites. It ran under as www-data. What it does : it downloaded under wordpress's wp-content folder and run ...
1
vote
1answer
40 views

Linux - Get List of Local-User-System Environment Variables Separately

I could get system environment variables by using printenv command, but I need separate variables data: How could I lists of get local (session-wide), user (user-wide) and system (system-wide, global) ...
0
votes
1answer
21 views

Update kernel on fedora without updating whole system

I want to update the (Only Kernel) of my fedora 33 , How do I upgrade it without upgrading whole system, can I do sudo dnf update kernel* is it safe?
0
votes
0answers
25 views

Is there a good way to use `watch` change highlighting with `ls`?

So I've been using watch to monitor a bunch of files downloading into a directory like so: watch -d ls -l dir but this is quite useless if I want to see if new files are added or old files are deleted....
0
votes
0answers
28 views

why is the Operation not permitted?

chmod a+x rpc when i run this command the output is chmod: changing permissions of 'rpc': Operation not permitted "rpc" is the name of the file
0
votes
1answer
43 views

SSH proxy tunnel hop

My situation is like this, I have Server A which has internet I have server B which is behind a firewall and can`t connect to the internet but I can access it thru SSH Then I have server C D E that ...
0
votes
0answers
10 views

Calculate CPU and Memory % for a specific process by application name in Bash script

I have a process running in linux as A. I would like to write a bash script to calculate the memory and CPU percentage utilization for that process by process name continuously in a csv file. How do ...
1
vote
1answer
59 views

Why is moving a file the same as renaming a file?

I’ve heard for a while that for the mv tool in Linux, moving a file is the same as renaming a file. Here is the comment that piqued my interest recently: “On one file system renaming and moving is ...
1
vote
1answer
34 views

how to interpret octal flags in /proc/PID/fdinfo/N

The procps manpage states that the flags field in files in /proc/PID/fdinfo/ is an octal number indicating the file access mode and file status flags. The open manpage gives explanations of various ...
-1
votes
3answers
36 views

Can anyone get the default ip using only netstat -rn, while, read, and cut command?

As you can imagine, I should only use these commands to get the default IP of my virtual machine. netstat -rn gives the following output Kernel IP routing table Destination Gateway Genmask ......
0
votes
1answer
16 views

Extract end of sub-directory names in directory

I have example sub-directory names such as: Test_ABCDEF_406_1 Test_ABCDEF_AOH_1 Test_ABCDEF_AUQ_1 within a larger directory called Test. How can I efficiently pull out "ABCDEF_**_" or ...

1
5 6
7
8 9
641