Вы можете попытаться настроить основной дисплей с помощью xrandr
. Сначала запросите ваши дисплеи, просто выполнив
xrandr
. Затем установите первичный, например,
xrandr --output HDMI1 --primary
Или отключите другой дисплей с помощью
xrandr --output eDP1 --off.
Или вы можете написать файл /etc/X11/xorg.conf
.
find... | xargs...
y find... -exec...
son mejores opciones que esta :para usar un bucle de shell para iterar sobre los resultados de búsqueda correctamente, debemos usar un bucle while read
:
while IFS= read -d '' -r filename; do
echo "$filename"
done < <(find "$dir" -type f -print0)
Mucho que desempacar allí:
IFS= read -r line
. Eso permite leer espacios en blanco arbitrarios y barras invertidas en la variable. read -d ''
usa el byte nulo (producido por-print0
)como el final -del carácter de línea -en lugar de una nueva línea. No es necesario for
repetir esto.
find "$dir" -type f
generará por defecto todos los objetos encontrados.
Puedes hacer esto explícito con:
find "$dir" -type f -print
Si realmente desea iterar sobre estos, use un separador nulo yxargs
:
find "$dir" -type f -print0 | xargs -0 -n1 echo
O find
propio-exec
:
find "$dir" -type f -exec echo "{}" \;
No debe analizar la salida defind
por las mismas razones por las que no debe analizarls
Intenta usar find
/ exec
en lugar de:
find "$DIR" -type f -exec echo {} \;