What are other common Unix commands?

QuestionsQuestions8 SkillsProBasic Files OperationsAug, 31 2025
0106

Here are some common Unix commands that you might find useful:

  1. ls: Lists files and directories in the current directory.

    $ ls
  2. cd: Changes the current directory.

    $ cd /path/to/directory
  3. cp: Copies files or directories.

    $ cp source.txt destination.txt
  4. mv: Moves or renames files or directories.

    $ mv oldname.txt newname.txt
  5. rm: Removes files or directories.

    $ rm file.txt
  6. mkdir: Creates a new directory.

    $ mkdir new_directory
  7. rmdir: Removes an empty directory.

    $ rmdir empty_directory
  8. touch: Creates an empty file or updates the timestamp of an existing file.

    $ touch newfile.txt
  9. cat: Concatenates and displays the content of files.

    $ cat file.txt
  10. man: Displays the manual for a command.

    $ man ls

These commands are foundational for navigating and managing files in a Unix environment. For further practice, you might explore related labs on LabEx!

0 Comments

no data
Be the first to share your comment!