2023-05-27

Split text file into smaller multiple text file using command line

You can use:

split -l 5000 filename.txt

That creates files:

xaa
xab
aac
xad
xbe
aaf

Or you can use:

split -l 5000 -d --additional-suffix=.txt $FileName file

Where:

  • -l 5000: split file into files of 5,000 lines each.
  • -d: numerical suffix. This will make the suffix go from 00 to 99 by default instead of aa to zz.
  • --additional-suffix: lets you specify the suffix, here the extension
  • $FileName: name of the file to be split.
  • file: prefix to add to the resulting files.
Use man split for more info

P.S: Borrowed from here

Happy hacking!!!

2023-05-15

NO FUNCIONAN LOS ACCESOS DIRECTOS MODO AVION Y BLOQUEO DE TOUCHPAD (VANT)

Las teclas de función F1 (inhabilitar el touchpad) y F11 (activar/desactivar el modo avión) no funcionan por defecto en Linux con cualquier hardware. Los portátiles MOOVE14, MOOVE15 y ultraMOOVE se entregan con dichas funciones activas,pero si reinstalas la distribución Linux encontrarás que no puedes activar el modo avión (pulsando +) o activar/desactivar el touchpad (pulsando +).

Para habilitar ambas funciones hay que seguir los siguientes pasos:

  • Abrir terminal y ejecutar:
    sudo nano /etc/default/grub
  • cambiar la linea
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

    por la siguiente:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_os_name=Linux acpi_osi="

    Grabamos los cambios (+), salimos (+) y ejecutamos en la terminal:

    sudo update-grub
    reboot
    
Y ¡listo!. Ya funciona. NOTA: Si has instalado un sistema operativo Windows en tu ordenador VANT y has instalado todos los controladores suministrados con él, dichas funciones deben funcionar correctamente desde dicho sistema operativo, ya que uno de los drivers se encarga de habilitar las funciones especiales del teclado .

Happy hacking!!!