ubuntu – linux useful commands
DESCRIPTION
Ubuntu - Linux Useful CommandsTRANSCRIPT
![Page 1: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/1.jpg)
Ubuntu – Linux Useful commands
Editor: Nguyen Duc Minh Khoi Email: [email protected] Website: http://nguyenducminhkhoi.blogspot.com HCMC University of Technology @ Summer 2013 Main reference: Ubuntu Linux Toolbox by Christopher Negus François Caen
![Page 2: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/2.jpg)
Forward
• This presentation just give you some basic commands to work with Ubuntu – Linux environment, specially for non-developer users.
• If you want to look more information, search on the Internet with the keyword: “Ubuntu x command” or “Ubuntu + function”
• Please refer to the main reference as much as possible you can
• If you have opportunity, you should buy the main reference book because it explains clearly for you to understand.
• I just give you some examples taken from that book for you to easily lookup as a reference book :D
8/2/2013 Ubuntu - Linux Commands 2
![Page 3: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/3.jpg)
Contents
Starting Using Ubuntu
Working as a User
Working as an Administrator
8/2/2013 Ubuntu - Linux Commands 3
![Page 4: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/4.jpg)
STARTING USING UBUNTU Section 1
8/2/2013 Ubuntu - Linux Commands 4
![Page 5: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/5.jpg)
Basic Linux Commands
• Every Linux Command have this format:
NameOfCommand (Options)* (Argument)*
– Options usually start with – or -- character
• Using help message:
8/2/2013 Ubuntu - Linux Commands 5
![Page 6: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/6.jpg)
man Command • To find information about a command
8/2/2013 Ubuntu - Linux Commands 6
![Page 7: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/7.jpg)
Other useful commands • Print main page descriptions that match keyword
• Using info documents
8/2/2013 Ubuntu - Linux Commands 7
![Page 8: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/8.jpg)
Managing Software with APT
8/2/2013 Ubuntu - Linux Commands 8
![Page 9: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/9.jpg)
Managing Software with APT (cont.)
8/2/2013 Ubuntu - Linux Commands 9
![Page 10: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/10.jpg)
Managing Software with aptitude
8/2/2013 Ubuntu - Linux Commands 10
![Page 11: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/11.jpg)
Managing Software with aptitude (cont.)
8/2/2013 Ubuntu - Linux Commands 11
![Page 12: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/12.jpg)
Important shortcuts with Shell • Open shell on the new tab: Ctrl + Shift + t • Open new terminal window: Ctrl + Shift + n • Close tab with: Ctrl + Shift + w • Highlight text and copy: Ctrl + Shift + c • Paste it in shame or different window: Ctrl + Shift + v or click center
button on the mouse • Full screen mode: F11 • Zoom in: Ctrl + Shift + +, zoom out: Ctrl + - • Switch among tabs: Alt + 1, Alt + 2, Alt + 3 and so on • Exit the shell: Ctrl + d • Switch to another virtual console: Ctrl + Alt + F1, Ctrl + Alt + F2
8/2/2013 Ubuntu - Linux Commands 12
![Page 13: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/13.jpg)
History commands
• List entire history:
• Search for a string in history:
8/2/2013 Ubuntu - Linux Commands 13
![Page 14: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/14.jpg)
Redirect stdin and stdout
8/2/2013 Ubuntu - Linux Commands 14
![Page 15: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/15.jpg)
Redirect stdin and stdout (cont.)
• To append a file instead of overwrite it:
• Direct output stream to a special bucket file:
• Pipe with ls commands
• Pipe and redirection combine:
8/2/2013 Ubuntu - Linux Commands 15
![Page 16: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/16.jpg)
Using Alias • List Alias that are currently set:
• Define your own alias for the current bash section:
• Remove an alias:
• Remember: Use tab key for suggestions
8/2/2013 Ubuntu - Linux Commands 16
![Page 17: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/17.jpg)
Other Useful Commands
• Acquiring Super User Power
• Using Environment Variable: – Display all environment Variable:
– Set or reset variable yourself:
– Concatenate a string with existing variable:
8/2/2013 Ubuntu - Linux Commands 17
![Page 18: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/18.jpg)
Using regular files
• Regular files consist of data files (documents, music, images, archives, and so on) and commands (binaries and scripts)
• Use the file commands to see some file types:
8/2/2013 Ubuntu - Linux Commands 18
![Page 19: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/19.jpg)
Using regular files (cont.)
• Using directories
8/2/2013 Ubuntu - Linux Commands 19
![Page 20: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/20.jpg)
Setting File/Directory Permissions
• Changing permission with chmod
8/2/2013 Ubuntu - Linux Commands 20
![Page 21: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/21.jpg)
Setting File/Directory Permissions (cont.)
8/2/2013 Ubuntu - Linux Commands 21
![Page 22: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/22.jpg)
Other useful commands
• Changing ownership
• The traversing the File System
8/2/2013 Ubuntu - Linux Commands 22
![Page 23: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/23.jpg)
Other useful commands (cont.) • Copying files:
– -a: copying all files, retaining ownership and permission settings
• Finding files with locate
8/2/2013 Ubuntu - Linux Commands 23
![Page 24: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/24.jpg)
WORKING AS A USER Section 2
8/2/2013 Ubuntu - Linux Commands 24
![Page 25: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/25.jpg)
Matching using regular expression
8/2/2013 Ubuntu - Linux Commands 25
![Page 26: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/26.jpg)
Editing text files with nano Editors
• Control keys for nano
8/2/2013 Ubuntu - Linux Commands 26
![Page 27: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/27.jpg)
Nano Editors (cont.)
8/2/2013 Ubuntu - Linux Commands 27
![Page 28: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/28.jpg)
Listing text file
• Output top 10 lines of a file
• View ends of a file
8/2/2013 Ubuntu - Linux Commands 28
![Page 29: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/29.jpg)
Searching for Text with grep – $ grep francois myfile.txt #Show lines containing francois
• Recursive search – $ grep -R VirtualHost /etc/httpd/conf*
• Find the exact lines – $ grep -Rn VirtualHost /etc/httpd/conf*
• Ignore the case – $ grep -i selinux /var/log/messages #Search file for
selinux (any case)
• Checking word count with wc – $ wc /var/log/dmesg #List counts for a single file
436 3847 27984 /var/log/dmesg
8/2/2013 Ubuntu - Linux Commands 29
![Page 30: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/30.jpg)
Other useful commands
• Sort output with sort – $ dpkg-query -l | grep kernel | sort #Sort in alphanumeric
order
– $ dpkg-query -l | grep kernel | sort -r #Sort in reverse
alphanumeric order
• Replacing text with sed – $ cat myfile.txt | sed s/francois/chris/
– $ sed s/francois/chris/g < myfile.txt > mynewfile.txt
• Checking different between 2 files: – $ diff config config.old
8/2/2013 Ubuntu - Linux Commands 30
![Page 31: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/31.jpg)
Working with audio
• Install sox:
• Using play command:
8/2/2013 Ubuntu - Linux Commands 31
![Page 32: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/32.jpg)
Working with audio (cont.)
• Using ogg123 to play ogg file (install ogg123 package first)
• Using mpg321 to play mp3 file (install mpg321 package first)
8/2/2013 Ubuntu - Linux Commands 32
![Page 33: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/33.jpg)
Working with audio (cont.)
• Convert audio files
• Display info about a file
• Delete seconds of sound
8/2/2013 Ubuntu - Linux Commands 33
![Page 34: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/34.jpg)
Working with Images
• Install ImageMagick package: $ apt-get install imagemagick
• Getting info about images:
• Converting images:
• Resize image:
8/2/2013 Ubuntu - Linux Commands 34
![Page 35: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/35.jpg)
Working with Images (cont.) • Rotate images:
• Add text to images:
• Creating thumbnails:
• Making image fun and weird:
8/2/2013 Ubuntu - Linux Commands 35
![Page 36: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/36.jpg)
Browse the Web
• Use elinks package to view
8/2/2013 Ubuntu - Linux Commands 36
![Page 37: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/37.jpg)
Transferring files
• Download file with wget:
• FTP server requires login and password:
• Download a single webpage
8/2/2013 Ubuntu - Linux Commands 37
![Page 38: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/38.jpg)
Transferring files (cont.)
• Connect to a FTP server with lftp:
8/2/2013 Ubuntu - Linux Commands 38
![Page 39: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/39.jpg)
Copying remote files with scp
8/2/2013 Ubuntu - Linux Commands 39
![Page 40: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/40.jpg)
Chatting with friends in IRC
• Install IRC package:
• Connect to freenode server:
• Joining the centos IRC channel:
8/2/2013 Ubuntu - Linux Commands 40
![Page 41: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/41.jpg)
Configuring SSH
• Install OpenSSH:
• Logging remote with ssh:
• Accessing ssh on different port:
8/2/2013 Ubuntu - Linux Commands 41
![Page 42: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/42.jpg)
Mastering time • Your computer running Linux keeps time in two different
ways: – a system clock (which Linux uses to keep track of time)
– a hardware clock (that sets the system time when Linux boots up).
• Change current time zone:
• Change system date and time
8/2/2013 Ubuntu - Linux Commands 42
![Page 43: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/43.jpg)
Mastering time (cont.)
• Displaying and Setting on your system clock
8/2/2013 Ubuntu - Linux Commands 43
![Page 44: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/44.jpg)
Mastering time (cont.)
• Display dates by month
8/2/2013 Ubuntu - Linux Commands 44
![Page 45: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/45.jpg)
Mastering time (cont.)
• View the current time from hardware clock:
• Reset your system clock:
• Set hardware clock from system clock:
• Using network time:
8/2/2013 Ubuntu - Linux Commands 45
![Page 46: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/46.jpg)
WORKING AS AN ADMINISTRATOR Section 3
8/2/2013 Ubuntu - Linux Commands 46
![Page 47: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/47.jpg)
File system basics
• The ext3 file system type is based on the ext2 file system type, adding a feature called journaling to its predecessor.
• Journaling can improve data integrity and recovery, especially after unclean system shutdowns.
• Time-consuming file system checks are avoided during the next reboot after an unclean shutdown, because the changes that occurred since the most recent write to disk are saved and ready to be restored.
8/2/2013 Ubuntu - Linux Commands 47
![Page 48: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/48.jpg)
Work with partitions
• Work with specific disk:
• Copying partition tables with sfdisk:
• Creating and using swap partition:
8/2/2013 Ubuntu - Linux Commands 48
![Page 49: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/49.jpg)
Listing Active Process
• Use ps and top commands
8/2/2013 Ubuntu - Linux Commands 49
![Page 50: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/50.jpg)
Listing Active Process (cont.)
• Custom view Processes:
8/2/2013 Ubuntu - Linux Commands 50
![Page 51: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/51.jpg)
Watching active Process with top
8/2/2013 Ubuntu - Linux Commands 51
![Page 52: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/52.jpg)
Finding and Controlling Processes
• Using grep:
• Using fuser
8/2/2013 Ubuntu - Linux Commands 52
![Page 53: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/53.jpg)
Changing Running Process
• Adjust process priority with nice
– nice value that can be used to tell the Linux process scheduler what priority should be given to that process.
– The default nice value is 0. You can use the nice command to run a process at a higher or lower priority than the default. The priority number can range from –20 (most favorable scheduling priority) to 19 (least favorable scheduling priority).
– Although the root user can raise or lower any user’s nice value, a regular user can only lower the priorities of a process (setting a higher nice value).
– See current nice value
– Changing nice value:
8/2/2013 Ubuntu - Linux Commands 53
![Page 54: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/54.jpg)
Changing Running Process (cont.)
• Changing process nice value:
• Running process in background and foreground
8/2/2013 Ubuntu - Linux Commands 54
![Page 55: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/55.jpg)
Changing Running Process (cont.) • Manage background jobs:
• Kill process:
8/2/2013 Ubuntu - Linux Commands 55
![Page 56: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/56.jpg)
Monitoring Resources • First install sysstat package:
• See how much memory is being used
8/2/2013 Ubuntu - Linux Commands 56
![Page 57: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/57.jpg)
Monitoring Resources (cont.)
• View memory used over a give period:
• View info about processor itself
8/2/2013 Ubuntu - Linux Commands 57
![Page 58: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/58.jpg)
Monitoring Resources (cont.)
• List info about disk reads and writes
8/2/2013 Ubuntu - Linux Commands 58
![Page 59: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/59.jpg)
Managing network interface card
• Use ethtool command:
8/2/2013 Ubuntu - Linux Commands 59
![Page 60: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/60.jpg)
Managing network interface card (cont.)
8/2/2013 Ubuntu - Linux Commands 60
![Page 61: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/61.jpg)
Ethernet connection • Show address info and status of eth0 Ethernet interface:
• Get information both active and inactive NICs
8/2/2013 Ubuntu - Linux Commands 61
![Page 62: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/62.jpg)
Ethernet connection (cont.)
• See info on all interfaces:
8/2/2013 Ubuntu - Linux Commands 62
![Page 63: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/63.jpg)
Troubleshooting network problems
• Make sure there is IP - connectivity to that gateway
8/2/2013 Ubuntu - Linux Commands 63
![Page 64: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/64.jpg)
Troubleshooting network problems (cont.)
• Check your default gateway:
• Tracing route to host:
8/2/2013 Ubuntu - Linux Commands 64
![Page 65: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/65.jpg)
Display netstat connections
8/2/2013 Ubuntu - Linux Commands 65
![Page 66: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/66.jpg)
Working with user and groups
• Adding user accounts:
• Create new users with home directory: /home/willz
• Add password:
8/2/2013 Ubuntu - Linux Commands 66
![Page 67: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/67.jpg)
Working with user and groups (cont.)
8/2/2013 Ubuntu - Linux Commands 67
![Page 68: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/68.jpg)
Modifying User account
8/2/2013 Ubuntu - Linux Commands 68
![Page 69: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/69.jpg)
Modifying User account (cont.)
8/2/2013 Ubuntu - Linux Commands 69
![Page 70: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/70.jpg)
Managing passwords
8/2/2013 Ubuntu - Linux Commands 70
![Page 71: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/71.jpg)
Working with groups
• Getting info about user log on system:
8/2/2013 Ubuntu - Linux Commands 71
![Page 72: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/72.jpg)
Checking on Users
8/2/2013 Ubuntu - Linux Commands 72
![Page 73: Ubuntu – Linux Useful Commands](https://reader034.vdocuments.net/reader034/viewer/2022052213/53ffcb888d7f724c088b48ad/html5/thumbnails/73.jpg)
THANKS FOR WATCHING Khoi Nguyen ([email protected]) @ HCMUT 2013
8/2/2013 Ubuntu - Linux Commands 73