Según lo que desee que contenga el archivo:
touch /path/to/file
para un archivo vacío-
somecommand > /path/to/file
para un archivo que contiene la salida de algún comando.eg: grep --help > randomtext.txt echo "This is some text" > randomtext.txt
-
nano /path/to/file
ovi /path/to/file
(oany other editor emacs,gedit etc
)
O abre el existente para editarlo o crea y abre el archivo vacío para ingresar, si no existe
Usar toque
touch filename