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
0
votes
0answers
12 views

What do the Block Device Capability flags mean?

Linux block devices in sysfs have a capability file, partly documented here. Well, one is documented. Looking in genhd.h as it suggests, there are others. Is there any documentation on them, or does ...
0
votes
1answer
23 views

Beginner Advice to Start Using Linux

I'm fairly new to linux. Currently using MX Linux as my VM os to practice. Still not that confident to fully migrate. The OS that i really want to master is Arch linux.. i could have just used manjaro ...
-3
votes
1answer
25 views

Linux question for ls command

What us the command (ls) to count the number of files from a directory containing sub directories? Say I have a directory "Linux" And it has got file ex. prn. And directories ex2 and ex3 Then, I ...
-1
votes
0answers
19 views

custom command in /bin not working

So I created an alias in .bashrc which is: alias poof='kill -9 $$' This alias worked. duplicated the control + d effect for shutting down the terminal window without saving the command history ...
0
votes
0answers
22 views

Small distro for old pc

I'm using an old PC (Celeron, 1GB RAM) with Debian atm. I am already using dwm instead of a GUI but it still takes a lot of time to boot (I think it's because the whole Debian system is still running ...
1
vote
3answers
35 views

Concatenate Multiple lines into a single line until a pattern is found without loosing the first part of pattern

I have the following pattern: i-095erwr244r22cfeaa TF-CLIENT TF-StKML2 i-0c23232ac153534c5d TF-CLIENT TF-COMMON TF-STEERR i-043434e0934347eb5 TF-CLIENT TF-ADFS TF-COMMON TF-STCLUSTER_1 TF-...
0
votes
0answers
31 views

Transfering files from mainframe to Unix server using shell script

There is a file that is currently present in mainframe. I want to transfer the file from Mainframe server to Unix server by executing a shell script. This has to be done using shell script as the ...
1
vote
0answers
18 views

Bash tab completion not working following = character

I've looked at a lot of bash tab completion questions and haven't yet found one that answers this one. I'm on a linux system (GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)) and ...
0
votes
1answer
4 views

Postfix subcleanup prevents milters from rejecting mails

I have configured postfix to remove certain header fields from outgoing mail, such as the first received line that contains the User-Agent string and the IP address of the sending client as described ...
0
votes
0answers
11 views

KVM presenting wrong CPU Topology to VM

We are running openstack with KVM and i have noticed kvm presenting wrong CPU Tolopoly to VM and because of that we are seeing bad performance to our application. This is openstack compute: # ...
0
votes
1answer
10 views

mplayer audio capture

I have an ancient audio CD that I'd like to play. So far nothing will touch it except mplayer, it seems the disk is defective but mplayer soldiers through. I can't copy the disk either nor rip the ...
1
vote
1answer
70 views

Select a random file from the file system [duplicate]

Is there a way to get the path of a random file from the entire file system (either from a single partition or everything under /), in a reasonable time?
0
votes
1answer
41 views

what does htop stand for in Linux?

Can someone please explain to me what htop mean? or refer me to a resource that explains it NOT tell me how to use it?
-1
votes
1answer
22 views

How to use cut to create a single file with required columns from multiple files in linux

I have estimate.tsv files in more than 100 directories. I want make a single file with all the information needed from all those tsv files in the 100 directories. The data in estimate.tsv file looks ...
-3
votes
1answer
55 views
0
votes
0answers
9 views

Encrypting user folder after installing Ubuntu, without using 2.5x currently used space?

I've installed a XUnbuntu a few months ago, and did the stupid mistake of not checking "Encrypt Home". I'm now looking for a way to encrypt my user's home directory (I have only one user using this ...
2
votes
2answers
32 views

Cannot execute commands after logging in to server over SSH when IP is generated by linux command

If I ssh directly ssh user@192.168.13.2, the server behaves as normal and I can execute any number of commands before logging out. The server IP address is very similar to one defined in my network ...
2
votes
0answers
26 views

Process Scheduling in CPU

Assume I have 2 CPU's C1 and C2. At the very base, every process executes on the CPU for a given time slice 't'. Using cgroups, assume I limit the process to ensure that it takes only 50% of cpu. Now, ...
0
votes
0answers
25 views

How to Disable Camera from source? (Qualcomm Linux Kernel Source)

How to disable camera in qualcomm linux kernel, my front camera sensor is ov13855. Ho can i disable that from kernel source? Should i just remove the driver file? Or i need to configure something. ...
0
votes
0answers
15 views

Log out dialog focused on second monitor in multi-monitor setup (openSUSE KDE)

Whenever I invoke the log out / shutdown dialog, the focus is on the secondary monitor, i.e. keyboard moves options showing up in the secondary monitor. Even if that monitor is turned off. What's odd ...
-1
votes
1answer
13 views

sssd service stopped, then unexpected failure of internet connection [closed]

How am I now supposed to login back to the server if sssd service is not running? And I am afraid that by default, sssd service is not started on reboot.
0
votes
3answers
39 views

Create shortcut to folder for use in shell

I’d like to make a shortcut to a folder and be able to manipulate it. For example I have the folder: /media/Music And the folder: /media/Downloads I’d like to move the contents from downloads to ...
-2
votes
0answers
36 views

What is a buffer overflow attack? - Tricky Question [closed]

What is a buffer overflow attack? A. When attackers inject more data into a buffer than it can hold B. None of these answers C. To use the buffer overflow to load code that the ...
0
votes
0answers
12 views

Gaming on Linux mint with an old graphics card

I'm new to Linux Mint and have now tried to get my game library (mostly Steam games) running. With that I've learned of Steam Proton (which seems to be some sort of version of Wine), tried Wine itself,...
-1
votes
1answer
23 views

The Kernel space in the address space is reserved for us by what?

During process execution, when the memory map of a process is like so: This might be a silly question, but what is responsible for reserving the Kernel space in the address space? Are user processes ...
0
votes
0answers
16 views

Laptop boots to grub menu after uninstalling one of 2 dual booted linux distrobutions

I installed two Ubuntu based linux distributions on my acer laptop. I eventually decided I liked one of the two better and deleted the other distributions partition, but now when I boot the computer ...
0
votes
0answers
26 views

Pipe/redirect password into ssh for automatic login? [duplicate]

I use ssh to connect to an account based on Kerberos. My Kerberos tickets are only valid for 24h and are not renewed every time I login. Instead they expire and when that happens, ssh keys can't be ...
0
votes
0answers
14 views

How to set GNOME terminal locale to C.UTF-8?

I am having difficulty setting gnome terminal environment to C.UTF-8 locale, using Debian bullseye/GNOME3. I can update /etc/default/locale to LANG=C.UTF-8. After reboot: me@tesing:~$ localectl ...
0
votes
2answers
35 views

Is DHCP client of any use on my desktop computer?

Is DHCP client of any use on my desktop computer? I use my computer mainly for office purposes (web browsing/media consuming/libre office). As I am setting up some firewall rules, I wish to restrict ...
0
votes
0answers
9 views

Parrot OS on Virtualbox cannot connect to Wireless network

I have an Atheros AR9271 USB wireless adapter. I can use it to connect to wireless networks on my host system which is Ubuntu 18.04. I mean, there is no problem with the device. Virtualbox recognizes ...
2
votes
0answers
24 views

dconf editor value is different from gsettings get value

I did as follows: $ gsettings get org.gnome.desktop.session idle-delay uint32 300 $ gsettings set org.gnome.desktop.session idle-delay 80 $ gsettings get org.gnome.desktop.session idle-delay uint32 ...
0
votes
2answers
32 views

Linux files are not inheriting parent directory permissions

I have a directory with name 'test' that has permissions 0777. I have a script to write files to the directory 'test'. However, these files have, by default, permission 0644. I need these files to ...
0
votes
2answers
31 views

How to get the files occupying more size (top 10 files)

We have a parent directory called "/admin". Inside admin directory we have 100 child directories inside admin like "/admin/a" , "/admin/b" , "/admin/a/Source" .... We have a find command as below ...
0
votes
0answers
23 views

How to create logical volume inside lxc container?

by default, lxc container comes with default logical volume from the host but in this case, I want to create the additional logical volume into my lxc container.
0
votes
0answers
8 views

Get disk read thoughput includes cache hit

I know how to get disk read throughput from /proc, but cache hit is not included. How can I get total read throughput includes cache hit?
0
votes
2answers
40 views

Is there any way to make a text file that no users can read?

My question is very simple: Is there any way to make a text file that no users can read or write to, including root?
0
votes
0answers
8 views

Apache LoadBalancer not distributing evenly

I have an Apache 2.2 LB which I am trying to understand why all traffic is going to IP 137 mainly. I thought it was because maybe restart time, as up time was lower than others, so I did a reset on ...
0
votes
0answers
15 views

Is adding crontabs safe if it's done via a multithreadded application like a web server?

I'm using cronjobs to send email reminders to my clients. What happens is that when an email is first sent to a user, a reminder is scheduled at the same time by adding a cronjob for it using this ...
0
votes
0answers
17 views

Dual boot: Linux Boot option disappear

So I installed Pop!_OS while having Windows installed everything was working great. The way I was choosing between the operating systems was by pressing F12 and that opens a boot menu for my laptop ...
0
votes
0answers
15 views

Need help to create a checksum file of a directory on linux

I backup my data to an external hard drive regularly, and in the past, some of the files ended up getting corrupted and I haven't noticed it until it was too late. So to prevent this, I would like to ...
0
votes
1answer
24 views

Why is a default route required for multicast?

I am trying to fetch video over RTSP on a Linux box using GStreamer; the video server itself is sending the video stream using multicast. This is on a Linux box which does not have a default gateway ...
0
votes
0answers
17 views

How can I run a command, when I press the top button of my Bamboo Ink pen?

I've been trying to run a command, when I press the top key on my Bamboo Ink Pen. I realized that it connects via Bluetooth, when I press the button and ceases the connection, when I release it. I ...
1
vote
0answers
23 views

Does the loopback network inside the docker container shares host network loopback?

I recently faced issue with one client application which is running inside a container. This client making network connections to a server residing in the same container over loopback IP 127.0.0.1. ...
1
vote
1answer
31 views

How to print a 2 pages in portrait mode on single page which is also in portrait mode

I have a PDF of the size w=105mm and h=297mm (ie A4 split vertically) Now I wanted to print this PDF to generate another PDF which will have two pages from original PDF placed vertically side-by-side ...
1
vote
0answers
28 views

TPM chip problems when installing Ubuntu 18.04

I am trying to migrate from Windows 10 to Ubuntu 18.04, on a Sager laptop with an RTX 2070 graphics card. However I get the following error messages when trying to use/install Ubuntu: ...Error ...
0
votes
1answer
24 views

Interruptible and uninterruptible sleep

can you tell me some simple example of “uninterruptible sleep” state? I'm learning unix and example with NFS is not much obvious for me.
0
votes
0answers
19 views

How to delete or shrink compiled kernel installation directory and still build an external module?

I am having trouble building external modules after compiling the linux kernel on an external device. It is the 4.19.103 kernel with the real time patch-4.19.103. My onboard storage disk is <3Gb ...
0
votes
0answers
17 views

Xed : highlight selected text occurences?

I'm using Gnome Xed text editor. Is there a way to auto select all occurrences of currently selected-text across the document. If Xed cant do it, what other linux text editor can do it ? How ?
1
vote
1answer
29 views

SysRQ+B (boot) not working but O (turning off) is

For some reason, my Linux machine will properly turn off when striking SysRq+O, but won't reboot as expected when doing SysRq+B. Both of these ones show up in the help message (with SysRq+H) and all ...
0
votes
0answers
15 views

How do I make only one partition and that partition root mounted into multiple partitions?

I use Pubic Cloud server with Linux OS. I want to create another partition. What should I do? I want to use LVM, but Linux said Can't open /dev/vda1 exclusively. Mounted filesystem? as well as ...

1 2 3 4 5 562