Day4 ubuntu boot camp
-
Upload
darlene-parker -
Category
Technology
-
view
281 -
download
0
description
Transcript of Day4 ubuntu boot camp
Ubuntu Boot Camp 2013The Freedom Is Yours!!
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
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
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)
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
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
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
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
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
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
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
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
Ubuntu Boot Camp 2013Basic Commands-File Permissions
chmod: Changes the permissions on a file or folder
EG: chmod 664 ~/Documents/test/practice2.txt
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
Thank you !