0% found this document useful (0 votes)
6 views1 page

Ubuntu Container For Linux Practice

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Ubuntu Container For Linux Practice

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Ubuntu Container for Linux Practice

Steps:
sudo apt update
sudo apt install [Link] -y
sudo systemctl start docker
sudo systemctl enable docker

Pull ubuntu image


sudo docker pull ubuntu

Run Ubuntu Container


sudo docker run -it ubuntu

Linux Practice Commands


Command Explanation
pwd Shows current directory
ls Lists files and folders
whoami Displays current user
date Shows current date and time
mkdir demo Creates folder named demo
cd demo Moves into demo folder
touch [Link] Creates empty file
echo hello > [Link] Writes hello into file
cat [Link] Displays file content
uname -a Shows system information
df -h Displays disk usage
free -m Displays memory usage
ps Shows running processes
touch [Link] [Link] [Link] Creates multiple files
ls -l Lists files with details
mv [Link] [Link] Renames file
cp [Link] [Link] Copies file
rm [Link] Deletes file
cd .. Moves back one directory
history Shows command history
clear Clears terminal screen

You might also like