Linux unix stack exchange

Содержание
  1. Questions tagged [linux]
  2. Manjaro: visudo /etc/sudoers permission denied
  3. How to block a range of ip adresses with libirt’s nwfilter for a specific mac(VM)
  4. Where is a systemd variable stored?
  5. How do I adapt a .img clone of my hard disk (1 partition with openSUSE) to another computer?
  6. Error mounting /dev/sdb2 at /media
  7. Overlay mount at btrfs
  8. Setup VPN for Linux in iran
  9. How can I force linux to limit the amount of time I play «games» on it per day, that would be protected from root override?
  10. Trapping SIGTERM and restarting a script works exactly three times on macOS
  11. Openssl output to stdout
  12. How to move a group of files that start with the same name using a bash script?
  13. Why doesn’t openSUSE GUI allow one letter usernames during first install?
  14. php artisan commands not working for jailed user
  15. Is it safe to permanently remove swap in device with huge memory?
  16. How can I give another user read/write access to a specific sub folder and the ability to ls the tree but only for the folder they have access to?
  17. Related Tags
  18. Hot Network Questions
  19. Subscribe to RSS
  20. All Questions
  21. In journalctl internal grep, is it possible to specify option to only output matched pattern?
  22. debian: show which package brings dependency
  23. Turn on keyboard light from multi-user.target
  24. How do I associate an application with all mime types it supports?
  25. Diagnosing unwriteable HDD
  26. How does Nix ensure that a package can be installed?
  27. Can I call /sbin/init from init script
  28. Does guestmount sypport ufs?
  29. Run a command in all immediate subdirectories of a directory named _QWE
  30. What is the state of the art of splitting a binary file by size?
  31. How do I view contents of log files that is too large?
  32. Burn image file to multiple DVD’s simultaneously
  33. Looking for the lightest, fastest window manager out of these options
  34. How can I configure my Linux host to NOT connect to a 2nd bridged interface that uses a different VLAN?
  35. Related Tags
  36. Hot Network Questions
  37. How can I disown a running process and associate it to a new screen shell?
  38. 2 Answers
  39. Get answers to practical, detailed questions
  40. Tags make it easy to find interesting questions
  41. How can I disown a running process and associate it to a new screen shell?
  42. You earn reputation when people vote on your posts
  43. Improve posts by editing or commenting

Questions tagged [linux]

These questions are about Linux in general – NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the “linux” tag.

Manjaro: visudo /etc/sudoers permission denied

I’m trying to set my user to root. Edited the /etc/sudoers file with visudo. Added a line: «superuser ALL=(ALL:ALL) ALL». Restarted pc. But there is no result. The user still does not have .

How to block a range of ip adresses with libirt’s nwfilter for a specific mac(VM)

I’m a bit lost how to block a range of Ip adresses(preferbly for a specific mac adress of a VM) blank for now

Where is a systemd variable stored?

I was reading the /lib/systemd/system/mysqld.service for mysql db and there is the row # Start main service ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS Where is $MYSQLD_OPTS stored? I need to check the .

How do I adapt a .img clone of my hard disk (1 partition with openSUSE) to another computer?

I have used the dd command to backup my Linux partition (openSUSE Tumbleweed) into a .img file that I saved on an external hard drive. However, I guess dd-ing it on another computer may cause problems.

Error mounting /dev/sdb2 at /media

Overlay mount at btrfs

I multiboot several distributions which are at separate subvolumes. They are stored in a not standardised layout. I have some subvolumes which I want mounted in a layered way. I prefere to use aufs . .

Читайте также:  Команда линукс температура процессора

Setup VPN for Linux in iran

I have just installed Ubuntu 23.04 I live in iran so I need VPN for almost any thing I have vpn for Linux like *** and **** but the problem is I need VPN for logging to my account in these VPNs. .

How can I force linux to limit the amount of time I play «games» on it per day, that would be protected from root override?

Problem: Struggling with video game addiction. https://www.reddit.com/r/Steam/comments/v0wj7i/is_there_a_way_to_limit_gaming_time/ Virtually no existing ways to limit gaming, outside therapy. I need .

Trapping SIGTERM and restarting a script works exactly three times on macOS

I have the following bash script, that starts another script and restarts said other script when trapping TERM: #!/bin/bash trap ‘./start-server.sh’ TERM ./start-server.sh Inside of start-server.sh, .

Openssl output to stdout

I want to extract signer from smime inside node app (child_process.spawn()), semantic : myapp | openssl smime -verify -CAfile c_root.pem -inform DER -signer /proc/self/fd/1 | myapp But i cant .

How to move a group of files that start with the same name using a bash script?

not sure what fails in this script: files=( /home/username/file* ) #echo $ if (( $ )); then mv /home/username/file* /home/username/Documents/ fi if I have three 3 files, the .

Why doesn’t openSUSE GUI allow one letter usernames during first install?

I burned the openSUSE Tumbleweed iso on USB and plugged it into a laptop to try it out. I ran the gui installer. When asked to choose a username I typed q in the username. However I was unable to .

php artisan commands not working for jailed user

I jailed a user using jail-shell from github (https://github.com/pymumu/jail-shell). The user has php binaries. So the php command works. But when I execute php artisan commands like ‘php artisan .

Is it safe to permanently remove swap in device with huge memory?

I have a desktop with 128G RAM. This is my typical memory usage when I am not running calculation-heavy scripts: sam@debian:~$ free -ht —si total used free shared .

How can I give another user read/write access to a specific sub folder and the ability to ls the tree but only for the folder they have access to?

I have a user user1 that has a bunch of folders in their home directory, including /home/user1/data/special/files. I have another user user2. I want: user2 to be able to read/write files/folders in /.

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group.
This site is not affiliated with Linus Torvalds or The Open Group in any way.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

All Questions

I’m trying to set my user to root. Edited the /etc/sudoers file with visudo. Added a line: «superuser ALL=(ALL:ALL) ALL». Restarted pc. But there is no result. The user still does not have .

In journalctl internal grep, is it possible to specify option to only output matched pattern?

I have the following journal messages: $ journalctl _COMM=kwin_wayland -o cat —since «-10s» . kwin_screencast: Dropping a screencast frame because the compositor is slow kwin_screencast: .

debian: show which package brings dependency

I need to install minimal openbox system on Debian 12: apt-get —no-install-recommends install openbox and apt-get wants to install, among other packages: libavahi-client3 libavahi-common-data .

Читайте также:  Лучший linux 2022 года

Turn on keyboard light from multi-user.target

Is there a way to turn on the keyboard light from the multi-user.target environment? As X11 is not loaded, the command xset led on does not work and gives xset: unable to open display «». .

How do I associate an application with all mime types it supports?

Let’s say I have xarchiver installed by default, and associated by default with most archive types. I’ve installed engrampa, and now want to assciate it with the various archive types instead. I don’t .

Diagnosing unwriteable HDD

I am currently dealing with an HDD, which I cannot write to, but I do not understand the reason for it. Here is what I have observed about the problem: Running a read-only benchmark works fine; read .

How does Nix ensure that a package can be installed?

I’m trying to understand how package managers, specifically Nix, ensure that a package can be installed. I know that Nix packages declare all of their dependencies explicitly. But can Nix provide a .

Can I call /sbin/init from init script

Let us say I have a custom init like this #!/bin/bash sleep infinity Which of these will load init A #!/bin/bash /sbin/init sleep infinity B #!/bin/bash exec /sbin/init sleep infinity I know .

Does guestmount sypport ufs?

I am trying to use guestmount to inspect/modify a FreeBSD .qcow2 image (I saw several answers here, but I found nothing actually solving my problem). I am working under Debian Sid. Apparently image is .

Run a command in all immediate subdirectories of a directory named _QWE

I can run a command in all directories named _QWE using: find . -name ‘_QWE’ -type d -execdir touch <>/1234.txt \; However, I need to run -execdir rename ‘s!^\./(\d+ -)\s(\d+\.)!$1!’ <> \; in all the .

What is the state of the art of splitting a binary file by size?

Some background you can happily skip Twenty years ago or so, when navigating the web costed a lot, when I was a Windows-only user, and when CDs/DVDs were a large storage means, and when sharing video .

How do I view contents of log files that is too large?

I’ve a huge log file. Worth 403MB. df -h command shows that only 8% free space in /home free -mh command shows that only 474MB is free and 658MB is available. How do i view the logs? I tried. grep -.

Burn image file to multiple DVD’s simultaneously

I have a question regarding a Linux bash script I’m working on. The script has a main routine (setting up and burning an .iso file to multiple SATA burners simultaneously); that also calls a separate .

Looking for the lightest, fastest window manager out of these options

I know similar questions have been asked dozens of times, but I find the answers given as usually «it doesn’t matter» or «all of them are good», etc. I am asking purely as an .

How can I configure my Linux host to NOT connect to a 2nd bridged interface that uses a different VLAN?

My computer is connected to a port on my switch that allows VLAN 10 (default) and VLAN 20. My computer only has 1 ethernet card: eno1. On my computer, I have created two bridged interface: br0 where .

Hot Network Questions

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group.
This site is not affiliated with Linus Torvalds or The Open Group in any way.

Читайте также:  Linux получить размер терминала

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

How can I disown a running process and associate it to a new screen shell?

I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back.

One way I thought of doing that was to transfer its ownership to a screen shell, thus keeping it running in there.

Is there a different way to proceed?

2 Answers

To move a process between terminals or to reattach a disowned, you can use e.g. reptyr.

There’s also a small utility called retty that lets you reattach running programs to another terminal.

Get answers to practical, detailed questions

Focus on questions about an actual problem you have faced. Include details about what you have tried and exactly what you are trying to do.

  • Using or administering a *nix desktop or server
  • The Unix foundation underlying MacOS (but generally not frontend application questions)
  • The underlying *nix OS on an embedded system or handheld device (e.g. an Android phone)
  • Shell scripting
  • Applications packaged in *nix distributions (note: being cross-platform does not disqualify)
  • UNIX C API and System Interfaces ( within reason )

Not all questions work well in our format. Avoid questions that are primarily opinion-based, or that are likely to generate discussion rather than answers.

Questions that need improvement may be closed until someone fixes them.

  • Anything not directly related to Unix or Linux
  • Questions that are primarily opinion-based
  • Questions with too many possible answers or that would require an extremely long answer

Tags make it easy to find interesting questions

All questions are tagged with their subject areas. Each can have up to 5 tags, since a question might be related to several subjects.

Click any tag to see a list of questions with that tag, or go to the tag list to browse for topics that interest you.

How can I disown a running process and associate it to a new screen shell?

I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back.

One way I thought of doing that was to transfer its ownership to a screen shell, thus keeping it running in there.

Is there a different way to proceed?

You earn reputation when people vote on your posts

Your reputation score goes up when others vote up your questions, answers and edits.

As you earn reputation, you’ll unlock new privileges like the ability to vote, comment, and even edit other people’s posts.

At the highest levels, you’ll have access to special moderation tools. You’ll be able to work alongside our community moderators to keep the site focused and helpful.

Reputation Privilege
2000 Edit other people’s posts
3000 Vote to close, reopen, or migrate questions
10000 Access to moderation tools

see all privileges

Improve posts by editing or commenting

Our goal is to have the best answers to every question, so if you see questions or answers that can be improved, you can edit them.

Use edits to fix mistakes, improve formatting, or clarify the meaning of a post.

Use comments to ask for more information or clarify a question or answer.

You can always comment on your own questions and answers. Once you earn 50 reputation, you can comment on anybody’s post.

Remember: we’re all here to learn, so be friendly and helpful!

Источник

Оцените статью
Adblock
detector