Recent Questions - Unix & Linux Stack Exchange |
- Windows 10 suddenly gives "no bootable device" screen
- configure vim to use both tmux and system clipboard
- Delete files of specfic type between two dates
- e2fsck error - fsck.ext2: no such file or directory while trying to open /dev/root
- Understanding of rpm commands(-ivh vs -uvh)
- Replacig text inside multiple repeating patterns in same line
- Is there a way to match history entries on multiple words/tokens of the command, when performing history expansion?
- How to download a table with records and header included sql unix
- zip outputs in the wrong place when used in a loop
- How do I ip route add automatically when I connect to a VPN
- How to grep inside a specific file in tar.gz without extracting?
- Is there a Bash command or series of commands which will identify and remove replicated directories?
- apt-get --fix-broken install giving a error
- How to change the text beside the text that I found after grep?
- How to compare two files to get matched records?
- Errno28 "No space left on device" during pip install
- Why is the output of the “*” command boot?
- How do I replace a certain pattern in multiple files?
- change menu key behaviour for xfce-terminal
- cifs mount error(2): No such file or directory
- Redirect packets to server on other interface
- How to get string between starting with X to ending with Y using Shell
- php call multple mysql values using the same formatting code
- Force folder permissions in Linux
- What Linux application can read PDX files?
- How do Bash and Zsh handle collation in patterns and regexes?
- ping displays "Name or service not known"
- make json from SQL query output
- What are the contents of /bin/bash, and what do I do if I accidentally overwrote them
- Can lftp read netrc for sftp-connections
Windows 10 suddenly gives "no bootable device" screen Posted: 16 Apr 2021 10:52 AM PDT I have Windows 10 dual boot with linux mint 20. The problem is that when using windows 10 it works fine but after random some time it stops and give me the "no bootable device" screen |
configure vim to use both tmux and system clipboard Posted: 16 Apr 2021 10:43 AM PDT I'm fairly new to vim (I'm using I would like this:
I have done some research but nothing (so far) is working for me. Info:
Here is what I thought would work in my case: Now when I cut/copy, From reading, I expected:
Problem:As explained above, Apologies to those with more experience, I'm fresh from |
Delete files of specfic type between two dates Posted: 16 Apr 2021 10:26 AM PDT We are trying to write some code in PeopleSoft to delete certain files in a remote server of a type between certain dates where all are specified by a PeopleSoft page. User enters a path, file type and date range through the page. PeopleSoft has a FindFile command which works great for local servers, but does not seem to work remotely. PeopleSoft also has an EXEC function which will issue Linux commands. But I'm not sure what the command should be. Can anybody help me with the Linux command? |
e2fsck error - fsck.ext2: no such file or directory while trying to open /dev/root Posted: 16 Apr 2021 10:51 AM PDT I am working with embedded Linux build with Yocto. My goal is to enforce file checking during each system booting. I've modified the I see two problems here. First, why Thank you in advanced for any help. EDIT: I use Linux built with Yocto with kernel 3.18 and systemVinit. There are some more methods to force fsck during boot process but they seem to work on systems with systemd. I suppose that e2fsck doesn't know which partition it should check. It tries to check /dev/root instead of my physical partition /dev/mmcblk0p2. |
Understanding of rpm commands(-ivh vs -uvh) Posted: 16 Apr 2021 09:57 AM PDT Just want to know how different |
Replacig text inside multiple repeating patterns in same line Posted: 16 Apr 2021 09:54 AM PDT I have something like this; I was trying to get something like this; Tried doing; This returns; It wraps around the whole line. Any way to get around it? note: I'm using a GNU version of sed |
Posted: 16 Apr 2021 09:33 AM PDT I'm working with a command-line tool that provides a number of subcommands that all use the same binary, e.g. The exact tool is proprietary (its exact functionality is irrelevant) and doesn't have specific features to help with tracking and recalling its own commands. For example, I'd like to recall command 7325, I know I could run |
How to download a table with records and header included sql unix Posted: 16 Apr 2021 08:45 AM PDT I have a table called students which is composed as follows It has the following records: What I want to do is that when downloading in txt, not only the records are downloaded, but also the titles (student ID, first name, last name, age) I am using the following code |
zip outputs in the wrong place when used in a loop Posted: 16 Apr 2021 09:03 AM PDT I have many directories and I want to zip them all. I use But when I used this in a loop using zsh, zip files are created elsewhere. I expected an output like this: What's going on? |
How do I ip route add automatically when I connect to a VPN Posted: 16 Apr 2021 08:43 AM PDT I am connecting to a VPN. When I connect to that VPN I need to run the following command to get it to work: How do I run this command automatically when I connect to a VPN or set that route in the GUI? I am using Ubuntu MATE 20.04 |
How to grep inside a specific file in tar.gz without extracting? Posted: 16 Apr 2021 08:12 AM PDT I'm looking for a command that can perform a grep operation in a specific file contained in a tar.gz archive. Example: file: archive.tar.gz, which contains: I want to grep only inside fileA.txt, not in the other two, without extract the files from the original archive, with only one command. Is it possible? I have tried:
This command performs the grep in all files included in the archive, but this is not exactly what I need: I need a command that grep only in the file I want to search in. |
Is there a Bash command or series of commands which will identify and remove replicated directories? Posted: 16 Apr 2021 07:49 AM PDT I'm working on a developing a script which will, inside of a directory, verify the existence of a sub-directory, then locate and delete replicated copies in the same directory. For example: A directory has the following sub-directory added: Other copies of the folder are replicated, such as: Is there a command or scripted series of commands which will verify the existence of the original folder (in the example I can use to find the directories with the replicated endings (-0, -1, etc), but that doesn't ensure the original file exists before deleting the replicated copies. Thanks in advance for any ideas you might have! |
apt-get --fix-broken install giving a error Posted: 16 Apr 2021 08:33 AM PDT So today i tried installing xubuntu-desktop and when i was installing it, it gave a error so i tried installing it again and after i installed it again it gave a error and if i run and if i try to uninstall it it also gives a error saying to run |
How to change the text beside the text that I found after grep? Posted: 16 Apr 2021 10:03 AM PDT In Linux environment, for example I have a file test1 that contains these text: I want only to remove the DB_UP beside the sqlplus. How to do it in multiple files with indefinite number of DB_UP before and after the line I really want to edit? I tried using xarg -i but it also removes the DB_UP that is before and after the sqlplus. I want the output to be: |
How to compare two files to get matched records? Posted: 16 Apr 2021 09:49 AM PDT I have 2 files with There are common fields in different positions. In In both files total count was 3k, both files were * delimter, in that file1 $1 and file2 $2 was common field for both files, we need check whether common field has 0 or 1 which present in file1 $3. we need to write the file like 1==>000000001D0560020011 2==>000000003D0792917850, $1=seqno,$2=matched9digit value follwed byD and $3 whether is 0 or 1 All $2 values from file2 will be present as $1 values in file1. file1: file2: output: I tried using the following Please help on that? |
Errno28 "No space left on device" during pip install Posted: 16 Apr 2021 09:47 AM PDT I am trying to execute
I received the hardware without any documents to refer to, but I will provide you any informations you need using console. (I tried to change the TMPDIR but it had no effect.) |
Why is the output of the “*” command boot? Posted: 16 Apr 2021 09:58 AM PDT I used the Why did this error occur? |
How do I replace a certain pattern in multiple files? Posted: 16 Apr 2021 09:44 AM PDT My goal to update version number in multiple XML file like following The version in the xml files might be different, I tried several options like this and this but they didn't work |
change menu key behaviour for xfce-terminal Posted: 16 Apr 2021 09:10 AM PDT I use the menu key a lot in my text editor bindings, but that does not work in terminal mode, because the xfce-terminal I use responds to menu button by opening the context menu. So I'd like to change that behaviour for the terminal, without remapping the menu key if possible. But I really don't know where to start. |
cifs mount error(2): No such file or directory Posted: 16 Apr 2021 08:22 AM PDT I believe I am not the first one encountered this issue and I read tons of "solutions" but none of them answered my question. So I post this one: I have a Buffalo Neworkstorage (NS) installed. I am able to mount the NS from my Rock Pi N10 running Debian (buster) using the following command:
But on my PC running ubuntu 18.04, using the exactly the same command as above, I got an error: tried all the "solutions" found on the internet and none of them solved my problem. Anyone have the same situation and found a solution? Please help! Thanks a lot for your sharing ;)) |
Redirect packets to server on other interface Posted: 16 Apr 2021 09:04 AM PDT Alright, little complex but here's what I need: I have a Minecraft server in a ZeroTier network with an IP of 172.24.229.62, accepting connections on port 25565. The fact that it's ZeroTier doesn't particularly matter, just pretend it's a normal LAN. On that same network, I have a general purpose Azure server with an IP of 172.24.229.65 on the LAN (ZeroTier) side. This LAN has no connection to the internet and no other devices. The general purpose server is running Ubuntu Server 20.10, and is exposed to the internet on another interface, accepting connections on port 25565. I need this general purpose server to redirect incoming packets on port 25565 on the internet side to port 25565 of the Minecraft server on the LAN side and send packets back as well. I found this script on SE, and tried it, but it didn't work. What am I doing wrong? |
How to get string between starting with X to ending with Y using Shell Posted: 16 Apr 2021 09:52 AM PDT I have dynamic string which are mentioned below, where I want to get String can be like : Output want : I tried : Output get : Can anyone help to cut it with shell script? |
php call multple mysql values using the same formatting code Posted: 16 Apr 2021 09:31 AM PDT I'd like use php to to recall multiple mysql values keeping the same formatting code, sometihng like With many "titles" (films), and matching "contents", under each of the several (8) kind of "genre". first attempt (with "function")I tried to replace $genus in $query1 with the below different variables. I read several posts about this question, but unsuccessfully. second attempt (with "prepared statements")Consider that
I tried this code, but unsucceffully: |
Force folder permissions in Linux Posted: 16 Apr 2021 09:59 AM PDT Normally I'm a Mac User, but now I installed a file server with Debian and OpenMediaVault. The Disks are set up as a ZFS pool. Everything works fine, just iTunes on Mac has a little problem with downloading new podcast episodes. iTunes first creates a temporary folder and only writes the file to the actual podcast folder at the end. But this temporary folder gets the permissions 675 and iTunes can't work with this. If I change the permissions very quickly to 777, the episode gets loaded. It's not that iTunes has a general problem with the server. Starting with an empty drive, iTunes writes all needed libraries and folders with 755 and also copies music files correctly. It's only this temporary folder that gets the wrong permissions. I tried all different versions I could imagine, even giving the user root status. It's always the same. Is it possible to enforce 777 permissions when creating a folder, no matter who creates the folder? I read something about This is the
|
What Linux application can read PDX files? Posted: 16 Apr 2021 09:21 AM PDT I use openSUSE LRAP 15.2 with a KDE desktop, and I want to download some collections of PDF files that include an index (IDX and PDX files) for each collection. I'd like to be able to search and view the index files, and view PDF files from the hit list. The Adobe PDF Reader is very old and doesn't handle the latest formats. What packages are available for this? |
How do Bash and Zsh handle collation in patterns and regexes? Posted: 16 Apr 2021 09:33 AM PDT Consider the following example: It seems that when matching against a pattern (i.e., using Zsh—at least Is there any guarantee as to what exactly |
ping displays "Name or service not known" Posted: 16 Apr 2021 09:45 AM PDT I am running Arch Linux on a Raspberry Pi. Suddenly:
I have two more computers (all running Arch Linux) connected to the Internet, where I can ping and use the Internet. Also, I can use VNC. I can also ping to 8.8.8.8. When trying to access DuckDuckGo on Chromium I get: I have an active Internet connection. What's wrong? |
make json from SQL query output Posted: 16 Apr 2021 08:43 AM PDT I have this query: or i can make it like this: I want to write a shell script that convert its output to json but i really dont know where to begin or what to do. the json must be like this: |
What are the contents of /bin/bash, and what do I do if I accidentally overwrote them Posted: 16 Apr 2021 08:19 AM PDT I accidentally overwrote the /bin/bash file with a dumb script that I intented to put inside the /bin folder. How do I get the contents of that file back? Is there a way I can find the contents on the web, and just copy them back in? What are my options here, considering that terminal gives an error talking about "Too many Symbolic Links?" I'm still a newcomer to this kind of thing, and I appreciate all the help I can get. Edit: I forgot to mention I'm on Kali 2.2 Rolling, which is pretty much debian with some added features. Edit 2: I also restarted the machine, as I didn't realize my mistake until a few days ago. That makes this quite a bit harder. |
Can lftp read netrc for sftp-connections Posted: 16 Apr 2021 09:01 AM PDT I am trying to create a script to upload some files to a server via SFTP. I can do that manually by opening an interactive lftp-session and providing username and password there. For the script, I would like to
I cannot seem to get this working. My current workaround is a wrapper-script that parses the
If so, are there special syntax-requirements if customs ports are part of the setup? I need to connect to |
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