a simple question, can I create a file at a location I want & using cat command & without using pipes & and the location is some other place than I where I am currently. (I would appreciate an edit)
Properties of cat command
cat
$ cat > location/i/want/theFileImCreatingcat doesn't really create files. It just writes to its standard output. In the above command, it's the output redirection (>) (set up by the shell) that creates the file (or empties an already existing one).By default, redirections (>) clobber the target if it exists. If you want to prevent that, set -o noclobber is your friend.If you don't want to fill the file with anything, touch will create a new empty file (or update the timestamp on an existing one).If you want to strictly create a new file, including its path, a helper shell function/script might come in handy:fcreat(){  while (( $# )); do   [ ! -f $1 ] && {      mkdir -p $(dirname $1);      touch $1;     }; shift  done}Usage:$ fcreat location1/i/want/file1 location2/i/want/file2$ tree$ tree. location1  i      want          file1 location2     i         want             file2fcreat: I don't know if I'm becoming a Unix expert or if I'm just losing my ability to spell.