linux

What is the /usr/bin/dir binary on linux?

What is the /usr/bin/dir binary on linux? I noticed I have a /usr/bin/dir which mostly behaves like /usr/bin/ls. I assumed first it was a convenience for people coming from DOS/Windows. I assumed this would just be a softlink to ls, but my first surprise was that this is a separate binary: $ ls -la /usr/bin/dir …

Total answers: 1

Is it Possible to Read stdout and stderr of Apps Launched From the Desktop?

Is it Possible to Read stdout and stderr of Apps Launched From the Desktop? Suppose I launch Firefox from my apps. Is the stdout and stderr redirected to a specific file or is it redirected to /dev/null? If it is indeed redirected to a specific file, I’d also like to know how to how to …

Total answers: 1

Permission denied error when starting terminal

Permission denied error when starting terminal I’m getting this error when I start my terminal: /home/USERNAME/.config/envman/PATH.env:2: permission denied: /home/USERNAME/.local/bin this is my .zshrc file: # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this …

Total answers: 1

Is it possible to redirect files in a readonly filesystem?

Is it possible to redirect files in a readonly filesystem? Let’s assume that I have created a linux image with a filesystem that is inherently readonly (like SquashFS) and disabled swap. From readonly I mean the main filesystem and all its content is readonly and it is mounted readonly as well, and only directories that …

Total answers: 2

Problems with Installing Nobara along with Windows 10

Problems with Installing Nobara along with Windows 10 I already have a Windows 10 Pro installed and want to install Nobara in a dual boot such that I can access either whenever I want to. I downloaded the "Nobara-39-Official-2024-01-24.iso" from here. Then I got my USB drive and got the .iso file onto it using …

Total answers: 1

What is a sane config for P2P DHCP using busybox udhcpd?

What is a sane config for P2P DHCP using busybox udhcpd? I have two computers connected directly via ethernet with one serving as a dhcp server and the other as a client my config: interface eth0 lease_file /var/lib/udhcpd/udhcpd.leases remaining no start 192.168.1.2 end 192.168.1.16 option dns 9.9.9.9 option dns 192.168.1.1 option subnet 255.255.255.255 option router …

Total answers: 1

Thread Name: Is /proc/pid/comm always identical to the Name: line of /proc/pid/status and the second field of /proc/pid/stat?

Thread Name: Is /proc/pid/comm always identical to the Name: line of /proc/pid/status and the second field of /proc/pid/stat? A Linux thread or forked process may change its name and/or its commandline as visible by ps or in the /proc filesystem. When using the python-setproctitle package, the same change occurs on /proc/pid/cmdline, /proc/pid/comm, the Name: line …

Total answers: 1

How to enable IPv6 on subinterface in Linux using sysctl?

How to enable IPv6 on subinterface in Linux using sysctl? I tried the following: sysctl -w net.ipv6.conf.Ethernet1.200.disable_ipv6=0, but it gave following error: sysctl: cannot stat /proc/sys/net/ipv6/conf/Ethernet1/200/disable_ipv6: No such file or directory It should have ideally tried to change in /proc/sys/net/ipv6/conf/Ethernet1.200/disable_ipv6 which it is not I have used echo 0 > /proc/sys/net/ipv6/conf/Ethernet1.200/disable_ipv6, but I need some Linux …

Total answers: 1

How do I rescue an encrypted LUKS partition after failed shrink

How do I rescue an encrypted LUKS partition after failed shrink I had an encrypted ext4 partition on a Samsung T7 1TB USB drive. It was LUKS (I believe this may be called a LUKS container?) The partition was 850GB. It had about 130GB in use. I also had an unencrypted 100GB NTFS partition and …

Total answers: 1

Weird Internet disconnection issue on Linux and ethernet

Weird Internet disconnection issue on Linux and ethernet I am using Ubuntu 23.10 and an ethernet connection to my router. However, sometimes during the day, my Internet connection gets "lost" for periods that can reach 1 hour sometimes. I can still access the router admin page, but no any other page on the Internet. The …

Total answers: 1

How does EXT4 handle sudden lack of space in the underlying storage?

How does EXT4 handle sudden lack of space in the underlying storage? Usually, block device drivers report correct size of the device, and it is possible to actually use all the "available" blocks. So, the filesystem knows how much it can write to such device in prior.But in some special cases, like it is with …

Total answers: 2

Systemd service starting before filesystem mount after power loss

Systemd service starting before filesystem mount after power loss I’m encountering an issue with a systemd service starting before a local partition is mounted, particularly after a power loss event. I’ve investigated and found that this problem arises due to a system reboot and subsequent fsck operation. To easily replicate the problem, I’ve created a …

Total answers: 1

On Linux Firefox is listening on several UDP ports on 0.0.0.0

On Linux Firefox is listening on several UDP ports on 0.0.0.0 On Linux, Firefox is listening on UDP port, usually on ports 30000 and higher. What is the reason for this and why not just localhost, but 0.0.0.0, i.e. the interface exposed to the network as well? Asked By: Cigarette Smoking Man || Source UDP …

Total answers: 1

How to run a one-off command at a specified future time in Guix?

How to run a one-off command at a specified future time in Guix? I want to run a shell command once at a specific time in the future on Guix. My idea was to use the at command, but that seems to not be available on Guix. The imperative nature of my desire goes against …

Total answers: 1

Why don't devtmpfs populate /dev/pts?

Why don't devtmpfs populate /dev/pts? Linux automatically populates a devtmpfs with the right devices and directory structure. This provides an almost complete tree for /dev, but the pts devices are notably missing. For the pts devices, Linux provides another virtual filesystem named devpts. This however is also a collection of device nodes, sometimes causing surprises …

Total answers: 1

Bind: Delegating a Subdomain With Its Own SOA

Bind: Delegating a Subdomain With Its Own SOA OS: Oracle Linux 8.9 Bind version: 9.11.36 (installed from rpm) I am having trouble creating a subdomain (powerwebappuat.lereta.com) delegated to azure servers. Normally this is not difficult. I would just add a delegation in the data file like this and everyone is happy: powerwebappuat IN NS ns1-38.azure-dns.com. …

Total answers: 1

Have lsof take action if a process has a file open — and, ideally, do so repeatedly

Have lsof take action if a process has a file open — and, ideally, do so repeatedly Per the EXAMPLES section in the lsof(8) man page on manpages.ubuntu.com, I should be able to run a command/take action if a process has a file open: To take action only if a process has /u/abe/foo open, use: lsof /u/abe/foo echo "still in use" When I …

Total answers: 1

/etc/hosts alias or multiple record

/etc/hosts alias or multiple record I want to know what is different between this two configuration : First : 127.0.0.1 localhost my-hostname 192.168.10.12 host-a a.com Second : 127.0.0.1 localhost my-hostname 192.168.10.12 host-a 192.168.10.12 a.com What happened if i do not use aliases ? Asked By: mah454 || Source For the /etc/hosts file these two alternatives …

Total answers: 1