Recent Questions - Unix & Linux Stack Exchange |
- `sort` using ascii order
- How to open the n most recently modified files in less/vim?
- The strange power consumption behaviour of a Quadro card when `vfio-pci` has been removed an `nvidial` reattached
- MX Linux Won't start
- No OpenGL on amd64 chroot on Arch Linux ARM
- Adding multiple user inputs into comma separated line in shell script
- Why is vxlan not forwarding the packet to the other end?
- Can I have custom folder icons for some specific (document) folders?
- awk command inside bash shell script loop
- How to use blocks of repeat code within .bashrc
- Return string of a line in a file with multiple line after a matching pattern
- 2 files with two cols if col1 value of file 1found in file2 it should print col1 of file1|corresponding col2 val |corresponding col2 of file2 value|OK
- Remove [CRLF] from specific colum in csv file
- match some or all patterns with awk
- How to run a command using another command output as part of its text in terminal?
- How does exec > work in AWS EC2 user data?
- Argument list too long while generating txt file which includes file names in a directory [closed]
- Oracle Linux or Ubuntu Server as a hypervisor?
- Why do threads have their own PID?
- Ufw allow http traffic out
- zsh completion: have the most recents files and directories near to the prompt and suggest first these most recent file and directory with "l" command
- How to fully upgrade Debian from command line (including release_version)?
- Mark RPM as Automatically or Manually Installed
- Unable to export specific gpio pins. How to check what uses GPIO pins and how to access register?
- Set up nftables to only allow connections through a vpn and block all ipv6 traffic
- How can I install Fiddler ca-certificate on Ubuntu to decrypt HTTPS?
- Visualizing layout key maps in xkb
- Deleted /usr/bin/touch and /bin/touch. Can't seem to install anything now, nor create any files?
- Nemo in Linux Mint - Reset all Preferences and "My computer" pane in List View
Posted: 28 Sep 2021 10:41 AM PDT I would like to use should produce especially these properties are important:
how do i achieve this? |
How to open the n most recently modified files in less/vim? Posted: 28 Sep 2021 10:38 AM PDT How can I open all and only the n (e.g. 5) most recently modified files in a directory in I know I can use How do I do this with |
Posted: 28 Sep 2021 10:21 AM PDT I have built a system with a Geforce GTX 960 and a Quadro M4000 graphics card, that I usually pass through to a virtual machine. The GTX 960 card is only used by the host. Normally, the Quadro card would not be available by the host, because the kernel driver But, there is this very strange behaviour in power consumption and fan speed... How can I reduce the power consumption and fan speed without needing to have From my notes: Reuse a Passed-through-ready Device on the HostSupposed a secondary graphics card, that has been prepared for passing it through to a guest, should be used on the host instead. The device would normally not be usable on the host, since the wrong driver is loaded. Here, the Quadro M4000 has the Unload the Also check the output of the nvidia driver tool Remove all associated PCI devices from the system. In this case, those are Then let it Funny enough, the Quadro M4000 consumes about 42 Watts under absolutely no load. I guess this is due to a driver problem... However, if the graphical Watch Best of all -- |
Posted: 28 Sep 2021 10:13 AM PDT I recently installed MX linux KDE and installed updates. After I rebooted and selected the default option in GRUB, it begins the loading splash screen only to complete and show me a black screen. I ESC'd and saw that it's booting normally, but something called regulatory isn't working properly, and it causes the wifi driver to fail also. And the weirdest part is that whenever I boot in terminal, it works fine. However, if I try to startx it'll hang the system. I'm stuck in terminal with no idea what to do. I tried downloading an another linux distro and using DD to make a bootable usb but it seems to not be working aswell. Any ideas what I should do? |
No OpenGL on amd64 chroot on Arch Linux ARM Posted: 28 Sep 2021 10:36 AM PDT I am on Arch Linux ARM, and am running a 64-bit chroot in order to get access to some things that are only x86_64. However, when trying to start yuzu or dolphin-emu, it starts, but the text is not there, and it has this error message: All the proper drivers are installed, and OpenGL works with no errors on host. EDIT: It seems that for some reason, llvmpipe is being used on the chroot instead of virgl. |
Adding multiple user inputs into comma separated line in shell script Posted: 28 Sep 2021 09:19 AM PDT I have to get user inputs of multiple domain names until the user is done with inputs. Input can be just one domain name or more than one. and the domain name should be separated by a comma How can I pass the domain names to the below command. Kindly please help me. As I am new to shell script, I am reading a single user input and store it in a variable and call the variable. like the below one. But When it comes to multiple user input that should be separated by comma, I am stuck. keytool -genkey -keystore $keystore -keysize 2048 -keypass $password -storepass $password -keyalg RSA -dname "CN=$domain1,OU=Devteam,O=Softech,L=Chicago,ST=IL,C=US" -alias $domain1 -ext san=dns:domain2,domain3,domain4,domain5,domain6,domain7 |
Why is vxlan not forwarding the packet to the other end? Posted: 28 Sep 2021 08:51 AM PDT I want to communicate directly with But Linux tells me that the network is unreachable. It looks like the packet is not being routed to the gateway and processed correctly by I hope someone can tell me what's wrong. This is the command I used to create the This is the record of my command execution in This is my network topology. |
Can I have custom folder icons for some specific (document) folders? Posted: 28 Sep 2021 08:34 AM PDT I am using Linux Mint, with Cinnamon Desktop Environment. I come from MAcOS, and in that system I am used to set custom icons for some of the sub-folders in my documents folder. Is it possible to do the same in Linux? Maybe with some additional 'tool'? |
awk command inside bash shell script loop Posted: 28 Sep 2021 07:56 AM PDT I have a bash script which is supposed to go thru a series of files text file. I have setup a for loop to do this job automatically for me but I am not getting any output files when the script runs. I have attempted various single line commands I have found online with no luck. I am looking to break these large files by "year" Any suggestions? |
How to use blocks of repeat code within .bashrc Posted: 28 Sep 2021 07:57 AM PDT I have a 4 functions that are 100 rows of simple code in my .bashrc These functions are identical except for the function name and the first 3 lines of code which are variables. How can I pull the 97 lines of code that are common out and into a seperate instantiated block that I then call from each of the 4 functions? I tried making a common function block of these common 97 lines and calling that from a very small funcion but I could not get that to work. Here is the function with the 3 unique lines at the top and the common code below that |
Return string of a line in a file with multiple line after a matching pattern Posted: 28 Sep 2021 08:34 AM PDT I have a file with multiple lines in it. I am trying to get a string that appears after a specific pattern... Here is the command i am trying to do: But instead of giving me only the line i want, its giving me everything after the pattern I specified... What I expect: Return only the output of the line that contains What the command is doing: Printing everything of the entire file after Any help is apprreciate it! Here is what I have inside I want to get only what is after Actual output of the What I need: |
Posted: 28 Sep 2021 08:48 AM PDT 2 files with two cols if col1 value of file 1found in file2 it should print col1 of file1|corresponding col2 val |corresponding col2 of file2 value|OK please see below file2 output file3 |
Remove [CRLF] from specific colum in csv file Posted: 28 Sep 2021 07:30 AM PDT I want to remove [CRLF] form a specific column in csv file using sed or awk Example : Output: |
match some or all patterns with awk Posted: 28 Sep 2021 10:59 AM PDT I have a small problem with awk multiple pattern matching which I cannot figure out. I have the following awk line: This gives the result I want (have the mathed results printed on a line every time they match) given that ALL of them match. If one of the patterns is not present then nothing will match. So if all match I get what I expect: The Is there a way to tell awk to look for these patterns and if they do not appear to leave the place empty? So for example if in the first instance Can this be done with awk? Edit: Here is the two example scenarios I am facing. My files start off as empty and then they fill with data and I need to filter some patterns from them. Not all the patterns appear from the beginning. So the file will start off as: If I use the awk command above it will give an empty result because The result of the However, at the beginning I would like to obtain the result: I hope this is clearer now ( I have rewritten and tested the awk command above to make it simpler for this example). |
How to run a command using another command output as part of its text in terminal? Posted: 28 Sep 2021 07:14 AM PDT If which output, for example, the following knowing that running each command separately works, how to inject I am just trying to run one command only! Update: When I combine them together using the double quote as following: I get the following output and Update 2 when I use single quote, I get the following output: |
How does exec > work in AWS EC2 user data? Posted: 28 Sep 2021 08:01 AM PDT I was writing a Terraform module for AWS EC2 that involved executing a bash in the user data section. While I was developing I had an issue in the script I wrote but neither AWS nor Terraform provided any logs for the errors in I got until I found this line in AWS support forum: This line writes all the output of the script executed in |
Argument list too long while generating txt file which includes file names in a directory [closed] Posted: 28 Sep 2021 07:08 AM PDT I am trying to write all of the file names in the directory into txt file. I used the command, But it gives error How can I get that txt file that has file names in the directory? |
Oracle Linux or Ubuntu Server as a hypervisor? Posted: 28 Sep 2021 07:01 AM PDT I own a HP Proliant DL380 Rack Server. I would like to use it as a hypervisor for a production environment. I was thiking of installing CentOS with KVM on it, but unfortunately CentOS is not realiable to use as a hypervisor since it got it's EOL aheaded. Now I searched on the internet for an alternative and I found that Oracle has some kind of GNU / Linux distribution that has compatibility with RHEL-CentOS and that really looks rock-solid stable. But in the other hand, I readed some comments talking about how bad Oracle usually treats Open Source software, which makes me a little bit uncomfortable. My last alternative would be to install Ubuntu Server with KVM and start working. Do you think Oracle Linux performance and support are really worth it to use it as a hypervisor ? Or should I just forget about it and start using Ubuntu Server ? |
Why do threads have their own PID? Posted: 28 Sep 2021 07:26 AM PDT I'm using htop and looking at a process (rg) which launched multiple threads to search for text in files, here's the tree view in Why am I seeing PIDs for the process' threads? I thought threads didn't have a PID and they just shared their parent's PID. |
Posted: 28 Sep 2021 07:09 AM PDT I have a server machine with ubuntu 20 on wich i've installed I'm trying to make a But this command gives a "Connection timed out" error. I thought that the problem was |
Posted: 28 Sep 2021 10:39 AM PDT On MacOS Big Sur 11.3, here is my The issue is that when I press TAB after a "l" which is actually the alias:
Indeed, I have not as the first result the most recent modified or created file or directory which are suggested. Which option could I add in UpdateBelow an illustration of my issue: The first command applied is " The problem is that once I type again " That is to say, I would like to get displayed the most modified recent files (like if I did a " EDIT 1: The options (reverse here to see newest files in the end of the list, because the upper part might not be visible on the screen.) But If I do it like for example on this screen below : this is not what I want : I would like the file How to modifiy this behavior ? Having in all situations the most recent files and directory near from the prompt ? It seems that everything depends if the list of files and directories can be contained all into the iTerm2 terminal window : if not, the order is not reversed, if yes, it is reversed. I don't know what to do. EDIT 2: I can confirm what I said above. With the option
How to manage to get the same behavior in both cases ? : the most recent files and directories always near to the prompt ? EDIT 3: I realize that the ordering display depends if all the listed files can be contained in the iTerm2 pane where I perform the command alias ' Option 1) if all files listing can be contained, then the more recent files/directories are near to the prompt when performing ' Option 2) if there is a long list of files/directories, ' This is this option 2) that I want to fix, i.e having with the more recent ordering files/directories just above the prompt. |
How to fully upgrade Debian from command line (including release_version)? Posted: 28 Sep 2021 10:10 AM PDT I desire to totally upgrade everything in Debian:Stable including the release version, to the newest stable release available:
Each action will be done respective to others in that entire recursive (monthly/yearly) single process, while I assume that release_version will surly be the last. In other words, I'd like to create a "fully rolling release stable Debian". I do it when having at least weekly/daily automatic backups (per month) of all the data so if something was broken I restore a backup. What will be the command to "brutally" upgrade everything whatsoever including doing a release upgrade? I was thinking about: |
Mark RPM as Automatically or Manually Installed Posted: 28 Sep 2021 08:47 AM PDT A question exists regarding how to mark an RPM as automatically installed, but that question concerns Fedora. I am using A Novell Bugzilla bug mentions a status of |
Unable to export specific gpio pins. How to check what uses GPIO pins and how to access register? Posted: 28 Sep 2021 10:01 AM PDT I use an i.mx6 board (yocto(jethro)) and am configuring a device tree. I changed a dts file and put the dtb file in a boot partition. I set GPIO4_IO19 in dts file as follows. At first MX6UL_PAD_CSI_VSYNC__GPIO4_IO19 was defined in other group (usdhcgrp) but I commented out them. After booting, I checked if gpio is successfully determined as I set. The result is So I checked this. gpio-115 is used by cd. Maybe it means card detection. I want to use it as sysfs to read the state. Any other way to read it ? Furthermore, gpio-10, 68, 109, 116, 117 is used by other device. How can I use them by sysfs? I think I need to do is checking whether register is correctly set value or not. If the register value is not the same as I set, I guess the other process set the pin control.However I do not know the way of accessing a register. What I know about gpio115 is as follows The same as the other gpios. How can I access 0x01DC and then get the value in linux(yocto)? Thank you for your cooperation. |
Set up nftables to only allow connections through a vpn and block all ipv6 traffic Posted: 28 Sep 2021 08:03 AM PDT I am trying to set up a nftables firewall on my archlinux distribution that only allows traffic through a vpn (and blocks all ipv6 traffic in order to prevent any ipv6 leaks) I have been playing around with it for a while now and ended up with a configuration that lets me browse the web, even though as far as I understand nftable so far, it should not let me do that. The ruleset is pretty short and looks like this: I tried to find my way thorugh with trial and error and had many other rules in there, but with just this, i am able to connect to the VPN server first and then browse the web. Once I remove the last rule from the outout chain though, it won't let me browse the web anymore. I am completely new to this and pretty much overall clueless, trying to learn. Unfortunately, the documentation on nftables is not that extensive, so I am kind of stuck at the moment. From what I understand so far, this setup should allow to make a connection to the vpn but it should not allow any other incoming traffic - yet I can browse the web without problems. Does anyone know why it works and how i should proceed with the setup of nftables to get a more complete setup? |
How can I install Fiddler ca-certificate on Ubuntu to decrypt HTTPS? Posted: 28 Sep 2021 11:00 AM PDT I am trying to get my Ubuntu machine to properly recognize and use the certificate from Fiddler as a trusted source so I can decryt HTTPS traffic (specifically to google-analytics). I had this working once before, but had to since reinstall Ubuntu and now have to re-setup Fiddler. I can't remember what I did in the first place and I've spent the better part of today trying to figure it out. I think I am inching closer to getting this certificate to recognize. By that I mean that when I went to Google a few hours ago, while using Fiddler, I would see the 'Connection Not Secure message' - which I think means Google is just actively refusing to recognize Fiddler's certificate. Now, I am getting a This Site Can't Be Reached page (ERR_SOCKET_NOT_CONNECTED) page. I have tried a number of different things today to try to get this to work, but this is what I did with my last attempt: Used THIS SITE as a jumping off point to get Fiddler installed.
This is pretty much where I am at right now. Turning Fiddler off - I can get to Google just fine, turning it on gives me the page I mentioned at the top of this post. I can see all other HTTP requests as expected. When I got this to work last time, I was reading a lot of suggestions of the web for how to get a CA certificate installed on Ubuntu and tried to pick that trail up again, but everything I read has since blended together. I do vaguely remember importing the Fiddler cert file into Firefox as a Person, exporting that cert, then importing the file I just exported back into FF as a CA trusted root, then deleted the person cert that I installed in the first place. I think I them used the cert exported from FF to import to the system with 'update-ca-certificates'. I have no idea if this was a critical step or not. I was also playing around with mitmproxy at the same time which also needed a proxy - again, no idea if that helped the process at all. I am basically throwing things at a wall right now and seeing what sticks. |
Visualizing layout key maps in xkb Posted: 28 Sep 2021 08:23 AM PDT I'm using to be able to enter tamil characters. I've not used it before, so I can't find the keys on the keyboard very easily. I've used to view a map of the geometry of the keyboard. But I'd like to be able to view the actual unicode symbols on the keys. I see things like |
Deleted /usr/bin/touch and /bin/touch. Can't seem to install anything now, nor create any files? Posted: 28 Sep 2021 08:43 AM PDT After updating GNOME to 3.20.2 I had some problems with my touchpad so in that confusion I mistakenly deleted /usr/bin/touch and after that I even became more stupid and deleted /bin/touch. Now after this I can't seem to install any of the programs. Here's the error generated in installing a program.. Any help will be much appreciated. |
Nemo in Linux Mint - Reset all Preferences and "My computer" pane in List View Posted: 28 Sep 2021 09:03 AM PDT I am struggling a little bit with this issue I'm having with Nemo in Linux Mint (I just upgraded to 17.3 but this is happening since 17.1). In brief, I accidentally removed some shortcuts from the "My computer" section in the left sidebar of nemo as a user. I tried to restore them, nbut apparently I can't add icons to that tab, nor drag them from the "bookmark" section to the "My Computer" one. If I start nemo as root, I can add, remove, drag and drop icons in that tab, but of course the changings does not apply to the "user" version. Moreover, I tried to perform a clean install of nemo after purging it, but unsuccessfully. Can someone explain me where th configuration file of this sidebar are located and hot to delete them, or set their permission to user in order to drag and drop correctly into that tab? Alternatively, is there a "real" way to clean install Nemo and only Nemo without touching the other GTK features? Thanks a lot for your time, any help is really appreciated! |
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