Según lo que desee que contenga el archivo:
touch /path/to/filepara un archivo vacío-
somecommand > /path/to/filepara 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/fileovi /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