Hi I was trying to create file in Linux but getting error as shown below: $ cat > file -bash: file: Read-only file system Hope will get better solution. Thanks in advanced.
My guess: current directory when doing cat > file is not writable. The error messages says Read-only file system. What shows Code: cat > file pwd df -hT . If you just want to cat to somewhere, this should work: Code: cat > /tmp/file.txt Press Control-D when finished writing to that file.