Есть директории A и B. Я хочу, чтобы контент A оказался в B, причем не хочется делать что-то громоздкое типа mv A/* B/ && rmdir A. Есть ли более красивый вариант?
Из 'man mount':
Since Linux 2.4.0 it is possible to remount part of the
file hierarchy somewhere else. The call is
mount --bind olddir newdir
After this call the same contents is accessible in two
places.
Вроде есть такой системный вызов.
Может поможет.