Here are some common Unix commands that you might find useful:
-
ls: Lists files and directories in the current directory.$ ls -
cd: Changes the current directory.$ cd /path/to/directory -
cp: Copies files or directories.$ cp source.txt destination.txt -
mv: Moves or renames files or directories.$ mv oldname.txt newname.txt -
rm: Removes files or directories.$ rm file.txt -
mkdir: Creates a new directory.$ mkdir new_directory -
rmdir: Removes an empty directory.$ rmdir empty_directory -
touch: Creates an empty file or updates the timestamp of an existing file.$ touch newfile.txt -
cat: Concatenates and displays the content of files.$ cat file.txt -
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!
