50 Practical Things For Beginners, Ubuntu 24.04 LTS, Hands-On Guide
50 Practical Things For Beginners, Ubuntu 24.04 LTS, Hands-On Guide
Getting Started with Ubuntu
Install Ubuntu 24.04 LTS
Use a bootable USB or virtual machine software like VirtualBox.
(No command needed)Explore the GNOME Desktop
Launch the settings interface:gnome-control-centerList Files and Folders
View detailed listings:ls -lNavigate Through Directories
Move to a specific directory:cd /etcShow Current Directory
Know where you are:pwd
File and Directory Management
Create a New Directory
mkdir myfolderCreate an Empty File
touch myfile.txtCopy a File
cp myfile.txt backup.txtMove or Rename a File
mv myfile.txt renamedfile.txtDelete a File
rm renamedfile.txt
Learn About Your System
System Overview
uname -aEdit with Nano
nano myfile.txtView Ubuntu Version Info
lsb_release -aDisplay Hostname and OS Details
hostnamectlReboot System
sudo reboot
Managing Software with APT
Update Repository List
sudo apt updateUpgrade Installed Packages
sudo apt upgradeInstall Software (e.g., VLC)
sudo apt install vlcRemove Software
sudo apt remove vlcSearch for a Package
apt search firefox
Users, Groups, and Permissions
Create a New User
sudo adduser johnAdd User to a Group
sudo usermod -aG sudo johnModify File Permissions
chmod 755 script.shChange File Ownership
sudo chown john:john script.shList User Groups
groups
Security and Network Basics
Enable Firewall
sudo ufw enableAllow SSH through Firewall
sudo ufw allow sshCheck Network Interfaces
ip aPing an External Site
ping -c 4 google.comView Open Ports
ss -tuln
System Monitoring and Scheduling
View Running Processes
ps auxInteractive Process Monitor
htop(Install withsudo apt install htop)Check Disk Usage
df -hCheck RAM Usage
free -hSchedule with Cron
crontab -e
Scripting and Development
Write a Bash Script
echo -e '#!/bin/bash\necho Hello, Ubuntu!' > hello.shMake Script Executable
chmod +x hello.shRun Script
./hello.shCheck Python Version
python3 --versionCreate Python Virtual Environment
python3 -m venv venv
Intro to Containers and Services
Install Docker
sudo apt install docker.ioRun First Docker Container
sudo docker run hello-worldStart SSH Service
sudo systemctl start sshCheck Active Connections
netstat -tulnpDownload File with wget
wget https://example.com/file.txt
Filesystems, Backups, and Links
Mount a USB Drive
sudo mount /dev/sdb1 /mntCreate Tar Archive
tar -cvf archive.tar myfolder/Extract Tar Archive
tar -xvf archive.tarBackup with Rsync
rsync -av myfolder/ backup/Create a Symbolic Link
ln -s /path/to/original linkname
Comments
Post a Comment