Recent Questions - Unix & Linux Stack Exchange |
- NixOS: how to apply a patch to GRUB 2
- Can not delete files
- process not killed even we used kill -9 and process actually was belong to container that already removed
- If the `-p` flag not needed anymore in `mkdir` 9.0?
- Thinkpad T460 - how do I disable the touchpad?
- quota and xfs_quota not working for NFS clients
- How do I connect a Linux machine so that it's the "headphones" to a bluetooth sound device?
- Reformatting text using sed or awk
- force Host setting group when ssh-ing via ip
- Cant edit sources.list using mousepad [duplicate]
- How can I display directory file counts recursively with the ls command?
- FFMPEG Multiple Filters (Scale Video + Scale / Apply Watermark)
- How do I tell ls -h to change the block size when calculating the human values?
- bash brace expansion: is it possible to associate another list(s) with the initial list?
- When writing a bash script, how does the script know which usage() to call?
- vi doesn't see a file
- Concatenate files by table values
- How to type less/greater than (<, >) characters in US keyboard with non-US layout in settings
- How to set a file that is owned by a user but not readable by the owner?
- Create set of fixed sized compressed files from a large number of files
- Installing GCC 4.8.5 on CentOS 8
- How to find spreadsheet files that contain a word
- How do I get rid of underline when typing commands in zsh?
- using overlay2 on CentOS 7.4
- How to disable "set -x"?
- Sound output not working properly in chroot
- Default to "Execute" when double-clicking on a shell script in PCManFM
- Merging folders with mv?
- Correctly determining memory usage in Linux
NixOS: how to apply a patch to GRUB 2 Posted: 20 Oct 2021 11:05 AM PDT How to apply a patch to GRUB in NixOS? Something like Tried this, but it didn't work |
Posted: 20 Oct 2021 11:08 AM PDT I copied some files from a DVD using the 'cp -a' command. Now, I can't delete any of the copied files. I set selinux to "permissive" to remove that as source of the problem. Here is what I have tried so far: Any suggestions appreciated. |
Posted: 20 Oct 2021 11:07 AM PDT here is a strange behavior that show how to kill a process , but actually process not killed example ( from rhel 7.6 server ) now we try to kill the process and again see if process killed , but as we can see process still up as we know the process but from some unclear reason the binary - and actually when we did so any idea how to kill the process from the Linux OS , in spite this process was running under docker container that already removed |
If the `-p` flag not needed anymore in `mkdir` 9.0? Posted: 20 Oct 2021 11:09 AM PDT I can't find any reference of this change of behaviour None of the folders exists. However, with mkdir (GNU coreutils) 8.25 the behaviour is as expected. |
Thinkpad T460 - how do I disable the touchpad? Posted: 20 Oct 2021 10:32 AM PDT I recently got a Thinkpad T460 and am running Ubuntu 20.04 on it. I don't use a DE, just plain old i3. I'm like to keep my hands on the keyboard. That's why I like the trackpoint. However, I keep accidentally touching the touchpad, resulting in unwanted mouse movements and even clicks (even though I barely touch it!) I'm exploring multiple options to improve the situation. This question is about disabling the touchpad completely. According to And if I run How can I disable ONLY the touchpad? |
quota and xfs_quota not working for NFS clients Posted: 20 Oct 2021 10:19 AM PDT I've been bumping up against this issue for years, but have never been able to find a resolution. Prior to RHEL7 (i.e. RHEL 5, RHEL 6, and CentOS 6), I was able to...
Problem: With CentOS7, I have made the jump to XFS (from ext4), and I am able to do all of the above except "4. Query quotas via the The following "Workaround" allows users to query disk usage of their NFS mounted file systems, but is not an accurate or sufficient substitution for I've danced around this issue long enough, and would really appreciate if this community could assist with my understanding why reporting user quotas across my XFS formatted NFS shares is not working. RHEL support, and CentOS support forums are all turning up empty. Assistance would be appreciated! Notes:
I am happy to provide more information on the Client-Server relationship if anyone shows interest. |
How do I connect a Linux machine so that it's the "headphones" to a bluetooth sound device? Posted: 20 Oct 2021 10:03 AM PDT The simple version of this is that I have a sound playing device, that normally connects to bluetooth headphones. But instead I want my Linux machine to see that device as a "virtual microphone". Concretely, this is a ham radio that would normally want a headset. But I want it into my Linux machine so that I can record it as wav files, or process the audio live. I actually want both directions, ideally. In other words I want to play audio on Linux box to transmit on the radio. |
Reformatting text using sed or awk Posted: 20 Oct 2021 10:07 AM PDT I have a input like where first row is the header, is it possible to reformat the text as the output below? I tried above not working, I am a new beginner in Linux, any idea would be appreciated. Input: Output: |
force Host setting group when ssh-ing via ip Posted: 20 Oct 2021 09:45 AM PDT supposed I have a but sometimes I need to connect to hosts that doesn't yet have a DNS record. I know of work arounds that are not practical:
and solutions that are not possible:
Is there a more practical way? maybe something like edit: openssh manpage shows |
Cant edit sources.list using mousepad [duplicate] Posted: 20 Oct 2021 09:41 AM PDT I'm trying to edit sources.list by
opens the file and I can see the contents. Why is this, and how can I fix it? |
How can I display directory file counts recursively with the ls command? Posted: 20 Oct 2021 10:13 AM PDT Under bash in Ubuntu, I want to Is this possible? |
FFMPEG Multiple Filters (Scale Video + Scale / Apply Watermark) Posted: 20 Oct 2021 08:40 AM PDT Can someone please tell me the proper syntax for combining the following filters into a single command? I can't seem to figure it out. The following command is being used to scale the video. Then, I use the following code to scale and apply the watermark. They work fine independently but every attempt I've made to combine the filter commands has been unsuccessful. Some assistance would be appreciated. |
How do I tell ls -h to change the block size when calculating the human values? Posted: 20 Oct 2021 09:12 AM PDT I have already read this: https://www.gnu.org/software/coreutils/manual/html_node/Block-size.html#Block-size, I don't believe it addresses my question. The issue is this: we're working on a file system where the blocks on the file system are 520 bytes each, rather than 512. So when I do a 'ls -h' it looks at a file, says "this file has 100 blocks, therefore it's (512B * 100) = 50 kb", but it's actually (520B * 100) = 51kb. Which means when we upload files to that file system, and check to make sure that the file was uploaded correctly, ls -h reports that all the sizes are wrong. Is there a fix for this? |
bash brace expansion: is it possible to associate another list(s) with the initial list? Posted: 20 Oct 2021 09:29 AM PDT Example: Assume that the 2nd list is Questions:
One-liners are preferred. |
When writing a bash script, how does the script know which usage() to call? Posted: 20 Oct 2021 09:55 AM PDT Let's say I write a bash function like so: function.sh Then I I run How does bash know which |
Posted: 20 Oct 2021 08:22 AM PDT I have been editing and trouble shooting a script. When I tried to edit it now, it shows an empty file and says[New File]. The file exists both ls and cat see it. And, I had edited about 10 minutes before. It doesn't appear to be a permission problem since I am logged in as root. Both vi and vim are acting the same way. UPDATE: I figured out the problem. My script inadvertently deleted all the files in the directory. I am doing this remotely via ssh. In all the established ssh sessions, 'ls', 'cat', and 'scp' see the original files. If I initate another ssh session, I see the new files installed by the script and none of the old files. The new question is why does the established ssh sessions see the old files while the new session sees the new files. |
Concatenate files by table values Posted: 20 Oct 2021 10:31 AM PDT I have a number of files each containing a specific pattern in their names like It contains:
So what I need to do is combine files for each group into one file - just like would be for group2 as an example - while reading this What I'm going to do is as follows: But I'm not quite sure how to iteratively change variables for this approach. Maybe using |
How to type less/greater than (<, >) characters in US keyboard with non-US layout in settings Posted: 20 Oct 2021 09:42 AM PDT I'm using a Keychron K2 with a physical US layout that I set as Italian in my settings. This means I'm missing a few keys that exists only in the physical Italian layout keyboards. Specifically the keys highlighted in yellow are missing: My question is: how do I type the "<" and ">" characters if the key is missing? I've dealt with this problem in the past and by pressing the right ALT + Shift + Z I was able to type the "less than" character. This solution is not working anymore, as with that combo of keys I get this ‹ character. What am I doing wrong? |
How to set a file that is owned by a user but not readable by the owner? Posted: 20 Oct 2021 09:44 AM PDT I'm looking through the Why and how does this happen? For instance, in Added Backstory: Currently the process is using firejail, which is a setuid binary, to drop caps and namespace isolate firefox. Without firejail, everything works as expected, i.e. user is able to |
Create set of fixed sized compressed files from a large number of files Posted: 20 Oct 2021 08:31 AM PDT I have set of large number of files to be archived in a linux server. I need to compress those files in to set of 1GB compressed files. I am using gzip to compress the files but I don't know the final size of the compressed folders until I really compressed the files. I am using below command to get the final size of the compressed file but it's not really efficient as I need to keep adding new files and compress until I get the desired final size. Is there an efficient way to do this? Or should I consider compressing individual files and then create the final archive using individual compressed files? |
Installing GCC 4.8.5 on CentOS 8 Posted: 20 Oct 2021 08:36 AM PDT I am trying to install GCC 4.8.5 under CentOS 8 Classic using GCC 8.4.1. Here's what I did (the question has been updated to reflect the recent progress) Get the prerequisites Get the compiler and its dependencies as described here: https://bytefreaks.net/gnulinux/downgrade-gcc-on-centos-7-0-64bit-to-version-4-8-2 Patch the files to avoid the double definition of libc_name_p as described here: https://unix.stackexchange.com/a/571800 in file cfns.h included in except.c Edit cfns.h and change the function declaration
Subscribe to:
Post Comments (Atom)
|
No comments:
Post a Comment