day4 ubuntu boot camp
DESCRIPTION
Ubuntu Boot Camp which Darlene facilitated at Costech (Commission for Science & Technology) in Dar Es Salaam Tanzania. We had a full house of enthusiastic users looking for hands on knowledge of Ubuntu & Open SourceTRANSCRIPT
![Page 1: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/1.jpg)
Ubuntu Boot Camp 2013The Freedom Is Yours!!
![Page 2: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/2.jpg)
Unity Desktop – Ubuntu Tweaks
Ubuntu Tweak: Is an application to configure Ubuntu that provides many useful desktop & system options that the default Desktop environment does not provide. http://ubuntu-tweak.com/
Ubuntu Boot Camp 2013The Unity Desktop
![Page 3: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/3.jpg)
Ubuntu Boot Camp 2013Using the Command Line -Tips & Tricks
Every command in Linux has a man (manual) page or help menu
man ls will bring up a manual which lists all the switches you can add to the command To exit the manual, hit the 'q' key
mv –help will also give you more information
![Page 4: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/4.jpg)
Ubuntu Boot Camp 2013Basic Commands
1. Create a text file with gedit
2. Type in the following...this is my first command line exercise in Ubuntu
3. Save it to your desktop & name practice.txt
We will use this file to practice our commands today
ls: Lists the files in the current directory.
EG: ls
You can type ls -l to see all the file information including permissions and owner
EG: ls -l /var/cache/apt/archives
less: allows you to view/display a file contents
EG: less ~/Desktop/practice.txt
gedit: opens the text editor like notepad, so you may modify files.
EG: gedit ~/Desktop/practice.txt (now add another line of text then save)
![Page 5: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/5.jpg)
Ubuntu Boot Camp 2013Basic Commands
pwd: shows the current working directory
cd: Allows user to change directories. When opening a terminal, a user will be in their
home directory. As a shortcut , substitute ~ in place of the home directory eg:
home/user1/Desktop is the same as ~/Desktop
mv: Moves a file to a different location or renames a file.
EG: mv ~/Desktop/practice.txt ~/Documents/practice.txt
EG: mv ~/Documents/practice.txt ~/Desktop/practice2.txt
cp: Makes a copy of a file
EG: cp ~/Desktop/practice2.txt ~/Documents
mkdir: Allows user to create directories (folders)
EG: mkdir ~/test
![Page 6: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/6.jpg)
Ubuntu Boot Camp 2013Basic Commands
rm: Removes or deletes a file or an empty directory
EG: rm ~/Desktop/practice.txt (it does not work on directories that contain files)
If the directory contains files you must add -R ( recursively)
EG: rm -R ~/test
![Page 7: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/7.jpg)
Ubuntu Boot Camp 2013Basic Commands – User Management
adduser: Creates a new user EG: sudo adduser user1
deluser: Removes a user from the system. To remove the user’s files and home directory,
add the -remove-home option
EG: sudo deluser -remove-home
![Page 8: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/8.jpg)
Ubuntu Boot Camp 2013Basic Commands – User Management
addgroup: Creates a new group on the system EG: sudo addgroup teachers
delgroup: Removes a group from the system. Note: you cannot remove a group that is the
primary group of any users
EG: sudo delgroup
![Page 9: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/9.jpg)
Ubuntu Boot Camp 2013Basic Commands – User Management
Alternatively, you may use the GUI or graphical interface to add users as well. Search Dash for Users...then unlock with your sudo password
![Page 10: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/10.jpg)
Ubuntu Boot Camp 2013Basic Commands – User Management
Alternatively, you may use the GUI or graphical interface to add users as well. Search Dash for Users...then unlock with your sudo password
![Page 11: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/11.jpg)
Ubuntu Boot Camp 2013Basic Commands – User Management
passwd: Changes the user’s password. If run by a regular user, it will change his or her
password. If run using sudo, any user’s password can be changed.
EG: sudo passwd user1
Setting passwd for root account in Ubuntu:
As discussed, the root account is not activated by default in Ubuntu, in both the desktop
and server versions. Make it secure and not the same as sudo!!! ( !nt4u2c~ )
EG sudo passwd root
Now you will be able to enter and use recovery mode if needed, selecting either the net
root option (if you have internet connection) or root
![Page 12: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/12.jpg)
Ubuntu Boot Camp 2013Basic Commands – File Ownership
chown: Changes the user and group ownerships of a file
EG: sudo chown user1 ~/Documents/practice2.txt
Change the group ownership of a file
EG: sudo chown user1.teachers ~/Documents/practice2.txt
![Page 13: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/13.jpg)
Ubuntu Boot Camp 2013Basic Commands-File Permissions
chmod: Changes the permissions on a file or folder
EG: chmod 664 ~/Documents/test/practice2.txt
![Page 14: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/14.jpg)
Ubuntu Boot Camp 2013Basic Commands - Additional
lsusb: Shows a list of USB devices attached to your system
lspci: Shows a list of PCI devices installed on the system
Ifconfig: Displays all present network adaptors, the MAC addresses and
IP's
![Page 15: Day4 ubuntu boot camp](https://reader033.vdocument.in/reader033/viewer/2022052505/5550d502b4c905e8318b4f87/html5/thumbnails/15.jpg)
Thank you !