Most Popular
1500 questions
88
votes
2 answers
Debian: The repository does not have a Release file
Whenever trying to install some programs from source, or specifically running apt update, I receive this message:
E: The repository 'http://ftp.ca.debian.org/debian stretch/updates Release' does not have a Release file.
N: Updating from such a…
user77647
88
votes
7 answers
Are threads implemented as processes on Linux?
I'm going through this book, Advanced Linux Programming by Mark Mitchell, Jeffrey Oldham, and Alex Samuel. It's from 2001, so a bit old. But I find it quite good anyhow.
However, I got to a point when it diverges from what my Linux produces in the…
user147505
88
votes
8 answers
How to delete line with echo?
I know that I could delete the last three chars with:
echo -ne '\b\b\b'
But how can I delete a full line? I mean I don't want to use:
echo -ne…

LanceBaynes
- 40,135
- 97
- 255
- 351
88
votes
11 answers
Is it good to make a separate partition for /boot?
I've seen some people make a separate partition for /boot. What is the benefit of doing this? What problems might I encounter in the future by doing this?
Also, except for /home and /boot, which partitions can be separated? Is it recommended?

Am1rr3zA
- 1,575
88
votes
8 answers
Makefile include env file
I'm trying to include some env vars into a Makefile. The env file looks like:
FOO=bar
BAZ=quux
Note there's no leading export to each env var. If I add the leading export and just include the env file in the Makefile, everything works as it should.…

Michael Irwin
- 983
88
votes
7 answers
List the files accessed by a program
time is a brilliant command if you want to figure out how much CPU time a given command takes.
I am looking for something similar that can list the files being accessed by a program and its children. Either in real time or as a report…

Ole Tange
- 35,514
88
votes
4 answers
How can I echo dollar signs?
For example, $PATH and $HOME
When i type echo $PATH it returns my $PATH, but i want to echo the word $PATH and not what the actual variable stands for, echo "$PATH" doesn't work either.

DisplayName
- 11,688
88
votes
4 answers
Use Mosh without giving up local scrollback / history?
Is there a way to use mosh without giving up the local scrollback?
Basically, in some circumstances, IP-roaming is indeed useful and needed, but the extra terminal emulation and key prediction seems to only be getting rid of the local scrollback…

cnst
- 3,283
88
votes
1 answer
Preserve the permissions with rsync
Let's say I have a file a.txt in LINUX with permission of 0664.
When I use rsync to copy the file to my Mac with rsync -r -t -v LINUX MAC, the file's permission becomes 0644.
How can I keep the permission for a file when using rsync? The -g option…

prosseek
- 8,558
88
votes
5 answers
How to persistently control maximum system resource consumption on Mac?
Before Mavericks, I could use /etc/launchd.conf file to change maximum system resource consumption, for example:
limit maxfiles 16384 unlimited
limit maxproc 16384 unlimited
It no longer works in Mavericks.
What is the correct way to do it in the…

Howard
- 5,209
88
votes
4 answers
Can I somehow add a "&& prog2" to an already running prog1?
Most shells provide functions like && and ; to chain the execution of commands in certain ways. But what if a command is already running, can I still somehow add another command to be executed depending on the result of the first one?
Say I ran
$…

us2012
- 953
88
votes
13 answers
How can I best copy large numbers of small files over scp?
I have a directory that's got several gigabytes and several thousand small files. I want to copy it over the network with scp more than once. CPU time on the source and destination machines is cheap, but the network overhead added by copying each…

nmichaels
- 980
87
votes
4 answers
File Permissions mode ending in @ or +
I was changing file permissions and I noticed that some of the permissions
modes ended in @ as in -rw-r--r--@, or a + as in drwxr-x---+. I've looked
at the man pages for chmod and chown, and searched around different help
forums, but I can't find…

Nathan
- 973
87
votes
6 answers
How can I tell what version of apache I'm running?
I know about the phpinfo() way but is there any other way? I'm using CentOS and I can't find the httpd executable to run httpd -v.

tooshel
- 1,441
87
votes
10 answers
Create and format exFAT partition from Linux
Is it possible to create and format an exFAT partition from Linux?

Sean
- 1,125