I'm trying to access the etc/fstab
by the following command and getting the error.
Bash command:
sudo echo "swapfile none swap sw 0 0" >> etc/fstab
Error:
-bash: etc/fstab: No such file or directory
Then when I trying to check the existence of etc/fstab
by ls -l
and getting it there. But why I got an error in the first entry point?
Btw, I'm using Ubuntu server on my Virtual machine.
/etc/fstab
oretc/fstab
? Are you in the root directory? – user1794469 Dec 02 '22 at 01:21