4 FAQ tagged "rm command"
Viewing 1-4 of 4 FAQ -- Ubuntu / Debian Linux Regenerate OpenSSH Host Keys
How do I regenerate OpenSSH sshd server host keys stored in /etc/ssh/ssh_host_* files under Debian Linux server? Can I safely regenerate ssh host keys using remote ssh session as my existing ssh connections shouldn’t be interrupted?
- UNIX: Remove a file with a name starting with - character
Q. Accidentally, I had created a file called -foo. Now how do I remove a file with a name starting with ‘-’ under UNIX or Linux operating system?
A. Use standard UNIX rm command, as follows:
rm command
Use rm command to remove files or directories as follows
rm ./-foo
rm ./-filename
rm — -foo
Alternatively, you can also [...] - Delete or remove a directory Linux command
Q. I am new to Linux and command line. How do I delete or remove a directory?
A. Use rmdir command. This command remove the DIRECTORY(ies), if they are empty. For example type following command to remove /tmp/docs directory:
$ rmdir /tmp/docs
If directory is not empty you will get an error:$ rmdir lettersOutput:rmdir: letters: Directory not empty
You [...] - Linux / UNIX: Delete a file
Q. How do I delete a file under Linux / UNIX / BSD operating system?
A. To remove a file or directory in Linux, FreeBSD, Solaris or Unixish oses use rm command.
rm command syntax
rm (short for remove) is a Unix command used to delete files from a filesystem. Usually, on most filesystems, deleting a [...]
Viewing 1-4 of 4 FAQ - ( see all popular tags )



Recent Comments
Today ~ 9 Comments
Today ~ 6 Comments
Yesterday ~ 6 Comments
Yesterday ~ 68 Comments
Yesterday ~ 8 Comments