What are other common file system commands?

079

Here are some common file system commands used in Unix-like operating systems:

  1. pwd - Print Working Directory: Displays the current directory you are in.

    pwd
  2. ls - List: Lists files and directories in the current directory.

    ls
  3. mkdir - Make Directory: Creates a new directory.

    mkdir new_directory
  4. rmdir - Remove Directory: Deletes an empty directory.

    rmdir empty_directory
  5. touch - Creates an empty file or updates the timestamp of an existing file.

    touch filename.txt
  6. cp - Copy: Copies files or directories.

    cp source_file.txt destination_file.txt
  7. mv - Move: Moves or renames files or directories.

    mv old_name.txt new_name.txt
  8. rm - Remove: Deletes files or directories.

    rm file_to_delete.txt
  9. cat - Concatenate: Displays the contents of a file.

    cat filename.txt
  10. find - Searches for files and directories based on specified criteria.

    find /path/to/search -name "filename.txt"

These commands are essential for managing files and directories in a Linux environment.

0 Comments

no data
Be the first to share your comment!