Forrest logo
back to context overview

files

List of commands for files:

  • files:delete:extension Delete all files with the given extension
    $ find ${directory} -type f -name '*.${extension}' -delete
    try on your machine
    explain this command
  • files:directory:delete Delete a given directory with all child directories.
    $ rm -rf ${directory}
    try on your machine
    explain this command
  • files:file:delete Delete a given file.
    $ rm ${filename}
    try on your machine
    explain this command
  • files:file:move Move a file to another directory or just rename it.
    $ mv ${sourceFile} ${destinationFile}
    try on your machine
    explain this command
  • files:find:pattern Find all files with a specific text pattern in it.
    $ grep -rnw '${path_to_check}' -e '${pattern}'
    try on your machine
  • files:permission This command will list the permissions and other details of the file.
    $ ls -l ${filename}
    try on your machine
    explain this command
back to context overview