Sure! Here are some common Bash command examples:
List files in a directory:
lsChange directory:
cd /path/to/directoryCreate a new directory:
mkdir new_directoryCopy a file:
cp source.txt destination.txtMove or rename a file:
mv old_name.txt new_name.txtDelete a file:
rm file_to_delete.txtDisplay the contents of a file:
cat file.txtSearch for a string in a file:
grep "search_term" file.txtCount lines, words, and characters in a file:
wc file.txtRun a script:
./script.sh
These commands are fundamental for navigating and managing files in a Bash environment. If you need more specific examples or explanations, feel free to ask!
