Skip to end of metadata
Go to start of metadata
ls
ls -l # Long listing format
ls -a # Include hidden files
ls -lh # Human-readable format
cd /path/to/directory
cd .. # Move up one directory
cd ~ # Change to home directory
cd - # Change to the previous directory
mkdir new_directory
mkdir -p /path/to/new_directory # Create parent directories as needed
cp file1.txt /path/to/destination/
cp -r /path/to/source_directory /path/to/destination_directory
mv file1.txt /path/to/destination/ # The directory where you want to move the file
mv old_name.txt new_name.txt # rename a text file
mv job23.sh job45.sh # rename a job script
rm file1.txt
rm -r directory_name # Remove a directory and its contents
rm -f file1.txt # Force remove without prompting
cat file1.txt
cat -E job.sh # display a $ at the end of each line, which can help visualize extra spacing
cat -n file2.txt # -n option cat displays line numbers
cat -v foo.txt # -v: Display non-printing characters, except for tabs and end-of-line characters.
cat -T foo.txt # -T: Show tab characters as ^I.
head file1.txt
head -n 20 file1.txt # Display the first 20 lines
tail file1.txt
tail -n 20 file1.txt # Display the last 20 lines