Recent Questions - Unix & Linux Stack Exchange |
- How can I push to GitHub when it's blocked?
- grep -f works faster than grep without -f
- Truncate file that is opened in another procces
- How to filter the highest value using awk command or other command [duplicate]
- How do you create a functionnal desktop folder after deleting it?
- CentOS Stream graphical package management tool / dnf frontend
- Readline Delay on `.` in Vi Mode
- Change language for one user on Fedora 34 w/ XFCE
- Why can't I connect to my remote desktop with rdesktop command?
- How to remove spaces from specific column using awk
- Why does AWK print "0xffffffffbb6002e0" as "ffffffffbb600000" using printf?
- Substitute entire line while removing newline of that particular line
- Does Linux have their own keys?
- How to get shell TAB-completion to work when I redirect grep ag ack output to vim?
- How to install dwm in void linux
- How to connect with wifi in void linux from scratch
- Why do all users start in /root instead of their home directories after su as root?
- Is there a light-weight version of X?
- Can I ignore certain irrelevant lines when creating/applying a patch with diff/patch?
- Vim set listchars to only show non-breakable spaces, not tabs
- Why does my window overlap when I using i3 windows manager and Nvidia integrated graphics?
- Warm up ZFS cache - force file into l2arc
- how to check virtual memory page size without getconf
- how to start a new terminal with agetty (not systemd)
- GRUB boot loader not shown on system startup
- find and replace "tabs" using search and replace in nano
- Shell variable in <a href> tag
- Find files older than a given file - a few hours
- How do I remove a user from a group?
- How to strip multiple spaces to one using sed?
How can I push to GitHub when it's blocked? Posted: 10 May 2021 10:05 AM PDT Right now, https://github.com is blocked with |
grep -f works faster than grep without -f Posted: 10 May 2021 09:40 AM PDT Please advise why grep -f works faster than grepping multiple keywords indidiuvally on same file. Some cases, both results are produced in seconds. On certain files, normal grep takes 15 mins and grep -f takes less than a minute. Regards, Veera |
Truncate file that is opened in another procces Posted: 10 May 2021 09:40 AM PDT If I try This behavior causes that I cannot use So, how do I truncate file, that is opened in write mode in another proccess and have correct file size after truncate? I need data in |
How to filter the highest value using awk command or other command [duplicate] Posted: 10 May 2021 09:11 AM PDT command |awk -F'|' '{print $4}' | sort -nrk1 I want to show the highest value using awk command like this, starting in 300 value Not including the lower value. |
How do you create a functionnal desktop folder after deleting it? Posted: 10 May 2021 09:45 AM PDT On Mate desktop I accidentally did a rm -rf * in home folder, now every file that I create inside this folder appears on the Desktop, I created a new Desktop folder but it's not enough to fix it. |
CentOS Stream graphical package management tool / dnf frontend Posted: 10 May 2021 10:07 AM PDT I've just installed fresh and wet CentOS Stream. Unfortunately yumex-dnf is no longer in the default repos. Is it dead? What was it replaced by? |
Readline Delay on `.` in Vi Mode Posted: 10 May 2021 08:24 AM PDT When I press Repro:
Is this normal/a bug or some option that waits for another key press? |
Change language for one user on Fedora 34 w/ XFCE Posted: 10 May 2021 08:23 AM PDT I'm in a situation where I have to set the language for one user on Fedora 34 (with XFCE). I found the settings to set the system language, but I can't figure out how to change the language for a user. The language locale in question is already installed ( I read somewhere, that I should be able to select the locale while logging in, but it doesn't seem to work in Fedora. I'm not given the option to select a locale. I cannot find it anywhere in the settings manager or in one of the hidden files in the user's home directory. Just for clarification: I don't mean the system wide language! That one is quite easy to find, I mean the language for this one user, nothing else. |
Why can't I connect to my remote desktop with rdesktop command? Posted: 10 May 2021 08:52 AM PDT I can connect remote desktop in How can I fix it? |
How to remove spaces from specific column using awk Posted: 10 May 2021 09:32 AM PDT I just want to modify the second column "Name" and remove all the spaces from between the name and leave the rest of the txt file untouched and further, print it. Here is my input (Tab separated fields): My Desired output: Command that I had been using but been unsuccessful with: |
Why does AWK print "0xffffffffbb6002e0" as "ffffffffbb600000" using printf? Posted: 10 May 2021 09:13 AM PDT I have been experimenting with hex numbers in AWK ( Why do I experience this behaviour and how can I correct it? I'm using awk on a Debian system. |
Substitute entire line while removing newline of that particular line Posted: 10 May 2021 08:38 AM PDT I'm trying to substitute (with Now, I already posted here, and from the linked post, I understand how to do this in some way: That works, or at least it seems so, because the newline at the end of the word Given the above, I'm also fully aware I do know how to at least delete the entire word/line and the newline: Except I need to substitute it instead. How can I do this? (with |
Does Linux have their own keys? Posted: 10 May 2021 09:55 AM PDT I don't own a Linux computer, or even a Unix one, so I decided to ask. In Windows, they have their own key named the Windows key (⊞). On its own, it opens the start menu and pressing it with another key will perform a certain function. In Apple's macOS, they have their own key named the command key (⌘). It acts like Windows' Ctrl key. For Windows users, if they would use macOS, they can simply replace Ctrl with ⌘ for most functions, if not all. As for Linux, I have no idea what keys they have that others don't. So does Linux have their own keys? |
How to get shell TAB-completion to work when I redirect grep ag ack output to vim? Posted: 10 May 2021 10:16 AM PDT I define This works fine, but if I try to TAB-complete filename, Only way out is to kill stuck vim process from another shell. What's going wrong here and how can this bash function be upgraded (or find some alternative) to make it TAB-completion compatible ? EDIT |
How to install dwm in void linux Posted: 10 May 2021 09:27 AM PDT What is it, the dependencies for comiple dwm from scratch for install dwm (suckless windows manager) in arch linux , i need to install xorg and make and other |
How to connect with wifi in void linux from scratch Posted: 10 May 2021 09:20 AM PDT The instalation of void linux , without desktop manager, it's come without
|
Why do all users start in /root instead of their home directories after su as root? Posted: 10 May 2021 08:08 AM PDT I feel like this should be straightforward but I've never seen anyone ask this that I can tell. The situation is pretty straight forward. Whenever I become a user, ie So, you can see that the postgres user's home directory exists and that its set in /etc/passwd...but for some reason, they start in the root directory. This happens with every user that I have created and I have no idea why. I can't say that I've ever seen this happen before either. |
Is there a light-weight version of X? Posted: 10 May 2021 08:13 AM PDT I am setting up a computer as a an older tablet "PC". It will run Debian and a single application, without any window manager. No Internet is needed, nor is remote access. To ensure it runs as fast as is possible, I wonder if there is a lightweight version of X, with lots of features removed, available on Debian? |
Can I ignore certain irrelevant lines when creating/applying a patch with diff/patch? Posted: 10 May 2021 09:31 AM PDT File A File B I want to diff A and B to generate a patch that when applied to C will change the line File C (before patch) File C (after patch) Ideally I would like a patch with context, as this sequence is not guaranteed to always appear in the same place in the file. In my mind the context would contain some form of wildcard line after I am open to manually editing the I would like to be able to send this patch to a friend who has file C and have them run a How can this be done? |
Vim set listchars to only show non-breakable spaces, not tabs Posted: 10 May 2021 10:10 AM PDT In In my However, when I open a vim sesion, I still see tab showing as Running ... it executes without error and I can see the changes. If I run or I get What is going on here? How can I set Running |
Why does my window overlap when I using i3 windows manager and Nvidia integrated graphics? Posted: 10 May 2021 08:51 AM PDT Problem Description: When I use the i3 windows manager for my desktop, the Xorg as background server, and with the Nvidia closed-source driver. I encounter the problem window overlap sometimes when I use the <$mod + mouse-left> to move it, which like below: My graphic card: I have two graphic card, Built-in graphics card and a Nvidia GTX 1660, but my motherboard only support one each time, below is my lspci information about the card: Question: How do I fix the window overlap, without being prevented from using the Nvidia GPU? What I tried I googled my questions, which may be related to the file /etc/X11/xorg.conf, below is my piece about it: |
Warm up ZFS cache - force file into l2arc Posted: 10 May 2021 09:11 AM PDT Currently I use: to warm up ZFS's l2arc. When I can see accesses are primarily coming from the cache disk, it is done. But I feel pretty silly doing that. Is there a way I can tell ZFS: "Hey, could you please put this file into l2arc?" I do not want to lock the file in l2arc. I just want have it in l2arc the same way it is in l2arc after running the above. |
how to check virtual memory page size without getconf Posted: 10 May 2021 08:39 AM PDT I need to check vm pagesize on an embedded device running linux. Do not have the Is there a way to check the page size in linux without |
how to start a new terminal with agetty (not systemd) Posted: 10 May 2021 09:35 AM PDT For the sake of learning, I wanted to start a new terminal (let's say tty10) from the command prompt. I know I can just run So, trying to replicate that from a terminal (tty1) I ran this: It indeed started a new login prompt at terminal 10, I enter the username but it never prompts for a password. Besides, when I go back to terminal 1 I see it logged out. What am I doing wrong? |
GRUB boot loader not shown on system startup Posted: 10 May 2021 09:02 AM PDT I am using Windows 10 installed on SSD( 256 GB) and Kali Linux Installed on HDD(1 TB), After successful installation of Kali Linux, the GRUB bootloader is not displayed on startup. I am not getting an option to choose Kali Linux or Windows 10 during startup. The system directly boots to Windows 10 even though I already installed Kali Linux on the system. How can I get option to choose Kali Linux or Windows 10 during startup? |
find and replace "tabs" using search and replace in nano Posted: 10 May 2021 08:31 AM PDT How can I search and replace horizontal-tabs in nano? I've been trying to use ...just been using |
Shell variable in <a href> tag Posted: 10 May 2021 08:22 AM PDT I wrote a simple bash script, those send mail with html link. But when email arrived, $ASS not insert in link and i see the following http://test.site/index=tail_$1&noAUTO=1 How fix it? |
Find files older than a given file - a few hours Posted: 10 May 2021 10:07 AM PDT I'm using the following to find all files that are older than a reference file... ... which works as expected. However, I want to add a bit of leniency to the time, so that it only finds files that are older than the reference file - a few hours. For example, if I have a reference file with modification date In this example, the following would be correct matches... ... and the following should not match... Ultimately I want to delete all the files that I find, so would love it if |
How do I remove a user from a group? Posted: 10 May 2021 08:08 AM PDT Which command should I use to remove a user from a group in Debian? When adding a user to a group, it can be done with: However, I could not find a similar command (accepting a group and user as arguments) for removing the user from the group. The closest I could get is: Is there a command like |
How to strip multiple spaces to one using sed? Posted: 10 May 2021 09:00 AM PDT
sed should search & replace (s) multiple spaces (/[ ]*/) with a single space (/ /) for the entire group (/g)... but it's not only doing that... its spacing each character. What am I doing wrong? I know its got to be something simple... AIX 5300-06 edit: I have another computer that has 10+ hard drives. I'm using this as a parameter to another program for monitoring purposes. The problem I ran into was that "awk '{print $5}' didn't work because I'm using $1, etc in the secondary stage and gave errors with the Print command. I was looking for a grep/sed/cut version. What seems to work is: The []s were "0 or more" when I thought they meant "just one". Removing the brackets got it working. Three very good answers really quickly make it hard to choose the "answer". |
You are subscribed to email updates from Recent Questions - Unix & Linux Stack Exchange. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment