Top new questions this week:
|
When looping through files there are two ways:
1. use a for-loop
for f in *; do
echo "$f"
done
2. use find
find * -prune | while read f; do
echo "$f"
done
Assuming these two loops will …
|
I see the same behaviour for below loop as the loop with while [ 1 ]. Why is that so?
while [ 0 ]; do
echo "hello"
done
|
This question is motivated by my shock when I discovered that Mac OS X kernel uses 750MB of RAM.
I have been using Linux for 20 years, and I always "knew" that the kernel RAM usage is dwarfed by X …
|
Need explanations from power users for such unpredictable behaviour:
ps -eF | { head -n 1;grep worker; }
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
root 441 2 0 …
|
Can I safely omit quotes on the right side of a local assignment?
function foo {
local myvar=${bar}
stuff()
}
I'm mainly interested in bash, but any info on corner cases in other shells are …
|
Currently I'm doing it by SSHing into a server, and executing Vim on the server. This has the benefit of not having to deal with cumbersome syntax of opening files from a remote server over SCP, and, …
|
I've just caught a confusing error:
rm: cannot remove `xxx/app/cache/prod': Directory not empty
which was caused by the following command:
rm -rf $cache_dir/*
where $cache_dir is defined as …
|
Greatest hits from previous weeks:
|
I have been searching for a while and I can't find the definition of a regular file. My path is permanent (I start at /) and I am connecting to
scp root@IP: /path/to/picture.jpg
Results in an …
|
I'm a Windows guy, dual booted recently, and now I'm using Linux Mint 12
When a Windows desktop freezes I refresh, or if I am using a program I use alt + F4 to exit the program or I can use ctrl + …
|
Can you answer these?
|
I am using gnome-terminal in LXDE. When I have several gnome-terminal windows open, after some time the cursor in the inactive window starts to blink as well, as if the inactive window was actually …
|
I'm using Mint 15 w/ cinammon.
I bought a set of bluetooth speakers and i'm tring to connect to them via terminal. Via GUI i can see them normally and i am connected to them. I want to make a small …
|
I have just installed the system (Manjaro) and I have one, major, problem: it says that my network cable is unplugged, even if it's plugged.
I have a Realtek RTL-8110SC/8169SC Gigabit Ethernet and …
|