os command in linux code example

Example 1: linux show version

cat /etc/os-release

Example 2: cat /etc/os-release

cat /etc/os-release

Example 3: linux basic commads

ls - list everything in current dirrectory
cd directoryname - change directory to given directory
cp directorynameofcopied directorynamewheretocopy - copes a file or folder
mv directoryoffiletobemoved directrynameofdestinationtomove - moves a file
pwd - print current location
touch filename - create a file
cat > filename - createa a file name and write into it
| - pipe command, lets you combine commands