Recent Questions - Unix & Linux Stack Exchange |
- Korn shell (ksh) omits closing quote when displaying aliases
- Why to use udev rule to insure persistent naming/permission instead of mknod?
- Start docker when log into account and not on boot
- Stuck during login on server - conda related?
- bash looping over files while tailing logs
- Centos 7 to Automatically connect to a Bluetooth device when it's available
- cant install a leafpad and gedit in kalilinux using sudo apt get install.......can you please guide me?
- Reset system loop after installing any debian based distro
- Get tty device paths for zte MF710M modem
- Permanently remap caps lock to escape
- Arch, Gnome - how to change the default terminal?
- How to make grep for a regex that appear multiple times in a line
- awk/sed find indexes of the first and the last capital letter in a string
- Print occurence count of "keys" and sum of the associated "values" in 3-column data file
- Add Archlinux Mirrorlist in Manjaro
- Enable Mod Expires on Apache
- Stuck trying to upgrade from Ubuntu 18.04 to 20.04 'multiverse' (component misspelt in sources.list?)
- FreeBSD 11.2 - Default resolution on console window
- Move folder to BTRFS sub-volume
- Unable to SSH but able to ping it
- Rotate every other page with pdfjam
- How to run start up scripts on Amazon linux?
- How to change pager key bindings
- What are the alternatives to the FHS?
- check md5sum from pipe
- Is there a way to add a directory to my PATH in zsh only if it's not already present?
- Rotate pdf pages: 90 degree for even pages and -90 degree for odd pages
Korn shell (ksh) omits closing quote when displaying aliases Posted: 25 Jun 2022 01:21 PM PDT When displaying aliases in Korn shell (ksh) the closing quote is omitted. This happens with both predefined and user-defined aliases: Bourne shell (sh) and Bash do show the expected closing quote: Here's what the alias definitions in my ~/.kshrc look like. It doesn't seem to matter whether single quotes or double quotes are used: I am running /bin/ksh in MacOS Monterey, Version 12.4 (The same problem appears in earlier versions of MacOS such as Catalina.) Why does this happen? Is this a known bug? Is there away to correct it? Thanks! |
Why to use udev rule to insure persistent naming/permission instead of mknod? Posted: 25 Jun 2022 02:00 PM PDT I have seen some configurations using Now I'd like to know why to use |
Start docker when log into account and not on boot Posted: 25 Jun 2022 12:53 PM PDT I am using systemd-homed with LUKS for managing my home directory (/home/myuser. I also have some docker containers which try to start on boot. The issue is that they have a volume which points to a directory on my home directory, and since the home directory is not mounted at that point, it creates those directories with root permissions. When I try to log into my user, it can't mount the user directory because there are already some files there. I would like to know how to make docker start the containers when I log into the user, and not when I boot the PC. |
Stuck during login on server - conda related? Posted: 25 Jun 2022 12:47 PM PDT When I am login to my server, the terminal halts and I have to hit CTRL+C to continue and entering the server. After hitting CTRL+C I get a lot of warnings (?) related to condo I believe. Any idea why it is stuck during login, and what the errors mean? Then these lines appear after hitting CTRL+C: |
bash looping over files while tailing logs Posted: 25 Jun 2022 02:17 PM PDT I'm running a daemon that process files in a specific dir. I want to process those one by one. so idea is I will copy files 1 by 1 in daemon dir, and tail its log, 2nd file should be copied to daemon dir when log file finishes processing first, i.e, log file stops updating. how can I achieve that? say and I have 5 files to process i.e, file{1..5} so my loop should go as is. and loop starts with next file. |
Centos 7 to Automatically connect to a Bluetooth device when it's available Posted: 25 Jun 2022 12:07 PM PDT I need to connect Zebra ring scanners to Cent OS boxes. With Bluetoothctl I am able to connect to one with a specific BT address, however our users in the workhouse are using an application which launches right after the system boots up and have no access to any shell whatsoever. My question would be is there a way to make Bluetoothctl scan for specific Bluetooth devices and automatically connect to them when it finds one it trusts. Example scenario would be 2 scanners/pc, if ones battery dies it connects to the other one or if the system reboots it would start to scan for the dedicated devices in the backround and connect to them right away as one is available. Thanks for any reply in advance! |
Posted: 25 Jun 2022 11:17 AM PDT |
Reset system loop after installing any debian based distro Posted: 25 Jun 2022 10:30 AM PDT I am trying to install Linux (Ubuntu). The installation process is fine. At the very end when it asks to restart computer, I restart my laptop and the message The computer restarts then a message saying Does anyone know how to fix this? I have now tried with many Debian based distros and always get the same issue. |
Get tty device paths for zte MF710M modem Posted: 25 Jun 2022 10:46 AM PDT i am trying to get the device paths for my modem i tried using usb0 but i got this error also, i also realized it's a "usb to ethernet stack". is there any way configure a serial port for that? |
Permanently remap caps lock to escape Posted: 25 Jun 2022 02:00 PM PDT I am trying to remap caps lock to escape on the keyboard. I tried the following solution found on AskUbuntu without success: what shall I do? |
Arch, Gnome - how to change the default terminal? Posted: 25 Jun 2022 02:04 PM PDT I want to change my default terminal emulator, that is, the terminal that opens when I So far, I've tried:
|
How to make grep for a regex that appear multiple times in a line Posted: 25 Jun 2022 10:37 AM PDT I want to grep a regex. The pattern I am searching for may appear multiple times in a line. If the pattern appeared many times, I want to separate each occurrence by a comma and print the match only not the full line in a new file. If it did not appear in a line I want to print n.a. Example. I want to use this regex to find numbers in the pattern: [12.123.1.3]. input file (input.txt) intended result in a new file (output.csv): Note: I use Ubuntu |
awk/sed find indexes of the first and the last capital letter in a string Posted: 25 Jun 2022 11:24 AM PDT I have several kinds of strings like this: the example string1 the example string2 the example string3 the example string4 PS: there are no strings having only one capital letter. I want to find indexes of the first and the last capital letter from the string which looks like the above examples by awk, sed, or other bash programs, because I have thousands of files, and Python would be time-consuming. the index of the first capital letter should be the count from the start to the end (left to the right). while the index of the last capital letter should be the count for the end to the start (right to the left). for example, for the example string1, the first capital letter is A, and the index is 3 from the left to the right (start to end). the last capital letter is A, and the index is 7 from the end to the beginning. for the example string2, the first capital letter is R, and the index is 7 from the left to the right (start to end). the last capital letter is F, and the index is 1 from the end to the beginning. for the example string3, the first capital letter is N, and the index is 5 from the left to the right (start to end). the last capital letter is C, and the index is 7 from the end to the beginning. for the example string4, the first capital letter is B, and the index is 1 from the left to the right (start to end). the last capital letter is K, and the index is 6 from the end to the beginning. Thanks for your help. |
Print occurence count of "keys" and sum of the associated "values" in 3-column data file Posted: 25 Jun 2022 10:30 AM PDT I'm reading a Redis dump file using shell. There are 3 main columns in the dump file as below. Expected output: Looking to get the expected above as columns can be checked based on substrings may be staring/middle/ending with strings (keys). |
Add Archlinux Mirrorlist in Manjaro Posted: 25 Jun 2022 12:55 PM PDT Manjaro does not install the latest packages from aur or arch repos. But i want to install the latest available packages in arch repos and aur in manjaro. I then looked into the file |
Posted: 25 Jun 2022 11:07 AM PDT I'd like to enable I'm using Ubuntu and Apache. When I try to check if the module is enabled : My I have restarted apache with the command The website that I'm using to ckeck is : https://www.giftofspeed.com/cache-checker/ Do you have any idea of the issue ? |
Posted: 25 Jun 2022 01:04 PM PDT When I tried to upgrade from Ubuntu 18.04 to Ubuntu 20.04 I I got stuck. While upgrading, it shows: I tried I found a solution on the internet. Replace this line: Now I'm unable to upgrade from Ubuntu 18.04 to Ubuntu 20.04. |
FreeBSD 11.2 - Default resolution on console window Posted: 25 Jun 2022 01:36 PM PDT I installed FreeBSD 11.2 on my DELL Latitude E7470 with UEFI (might be important). By default it does not install a GUI and that is fine by me (for now). Using the I'm stuck with a 1920x1080 screen resolutionThis results in way too small characters for me to read comfortably.
Anyone has any ideas on how to fix this? |
Move folder to BTRFS sub-volume Posted: 25 Jun 2022 10:59 AM PDT I recently formatted my Yesterday I reinstalled my Linux Mint and selected to mount my existing home partition as Current situation is the following disk layout: 250 GiB SSD -- 64 GiB / (BTRFS) -- 8 GiB swap -- ~170 GiB /home (BTRFS) When I try to move my home folder into the Now I got the question: How to move the files from the folder into the sub-volume correctly? And why doesn't moving the files work? |
Unable to SSH but able to ping it Posted: 25 Jun 2022 11:04 AM PDT I am using Ubuntu 16.04. The problem is I am able to SSH other machines from my system but I am unable to SSH my system from another machine. However, I am able to ping my system from other machines. For example, my system's IP address is Output of ssh from 192.168.170.52: Output for: is: |
Rotate every other page with pdfjam Posted: 25 Jun 2022 01:36 PM PDT I want to rotate 180 degrees every odd page using produces a file without pages 2, 4, 6, and 8. Also, I have a large document, so would like to save space when writing this. I cannot see anything useful in How can I achieve this goal? If a one-line command cannot produce this, I guess I could have a script, which produces $N$ number of rotated files, and then merge them? |
How to run start up scripts on Amazon linux? Posted: 25 Jun 2022 02:01 PM PDT I'm trying to create some script that should run on start. Now I've created some myScript file under the /etc/init.d/ and then run
myScript: Now I can successfully run Although Need some help. |
How to change pager key bindings Posted: 25 Jun 2022 11:08 AM PDT I'd like to swap I saw years ago a colleague having this setup during a Anyway, I'd like to achieve this to the most extent possible, be it locally or remotely. I checked Unfortunately, Darwin doesn't have this program. |
What are the alternatives to the FHS? Posted: 25 Jun 2022 10:45 AM PDT I'm a long time Linux user for over 15 years but one thing I hate with a passion is the mandated directory structure. I don't like that I want a directory structure where each package is isolated. Imagine instead if the media player dragon had it's own structure: Or: You get the point. What are my options? Is there any Linux distro that uses something like my scheme? Can some distro be modified to work like I want it (Gentoo??) or do I need LFS? Is there any prior art in this area? Like publications on if the scheme is feasible or unfeasible? Not looking for OS X. :) But OS X-inspired is totally ok. Edit: I have no idea how |
Posted: 25 Jun 2022 11:55 AM PDT I am confused how I have a file, I can pipe it to When I want to check the integrity of the file tomorrow, how can I check if the md5sum is still Note
|
Is there a way to add a directory to my PATH in zsh only if it's not already present? Posted: 25 Jun 2022 11:32 AM PDT Is there an easy way in zsh to add a directory to my PATH only if it's not already present? (or, more generally, any environment variable). I've tried: ... but if that's executed twice, it gets added twice. |
Rotate pdf pages: 90 degree for even pages and -90 degree for odd pages Posted: 25 Jun 2022 01:42 PM PDT I was wondering in a pdf file, how to rotate pdf pages: 90 degree for even pages and -90 degree for odd pages? By pdftk, all I know is to rotate a page by Thanks! |
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