Linux kernel with other softwares and preconfigure it to be usable (almost) out of the box • Example of Linux distributions: • Ubuntu • Debian • Fedora • Red Hat (commercial, non-free) • openSUSE • In this room we use Ubuntu Wednesday, September 4, 13
window to Linux’s most powerful interface: the Terminal • If you have a Mac, you can use it too but some commands may not be available To open the terminal, search for it using Spotlight. Wednesday, September 4, 13
list file (in curent directory) • pwd - print working directory • cp - copy file • mv - move file • cat - concatinate file and print it out Wednesday, September 4, 13
rename a file • touch - Create new empty file or update the file’s last modification date. • rm - remove file (NOT MOVE TO TRASH!) • wget - download file (you can think it as web get) • python - Yep, it is preinstalled on Ubuntu! Wednesday, September 4, 13
working of the program. For example: • cp -r: Make cp copy folders instead of ignoring it • rm -r: Make rm remove files in subfolders • You can combine arguments: rm -ri -r is for recursive, -i for interactive (ask before removing each file) Wednesday, September 4, 13
that you can’t. Some files in Linux are protected by permission. The shadow file store passwords of every users •wget http://madoka.whs.in.th/ NXT.iso Wednesday, September 4, 13
that you can’t. Some files in Linux are protected by permission. The shadow file store passwords of every users •wget http://madoka.whs.in.th/ NXT.iso • You will download a file, try canceling it by pressing ctrl+c Wednesday, September 4, 13
is to continue downloading file. Try canceling again and rerun wget without -c • rm NXT.iso after you use it • Try typing hashtags as commands like #SKE Wednesday, September 4, 13
is to continue downloading file. Try canceling again and rerun wget without -c • rm NXT.iso after you use it • Try typing hashtags as commands like #SKE • You will find that all hashtags are valid commands. This is because everything after # is a comment. Wednesday, September 4, 13
file, if it a file it is a process.” • Everything in Linux is exposed in /proc and /sys • Try cat /proc/cpuinfo • Try it on your Android if you have Terminal emulator installed. Wednesday, September 4, 13
lshw (not available on the Mac :P) • If it ask for password, type the password you use to login. It won’t show **** when you type. Wednesday, September 4, 13
it matches: • A minimum of quad core CPU with at least 3.1GHz clock speed and 3.9 GHz when using Turbo boost. With L3 cache at least 8 MB Wednesday, September 4, 13
• X work in a client-server model. You could do a X forwarding to run application on other computer and forward the screen to your computer as if it was running on your computer. • Try this: ssh -X yourfriendsip and type gedit. (Mac doesn’t use X, so you can’t do that. You need to install Xquartz first, still you have to ssh to a Linux machine as Mac apps doesn’t use X11) Wednesday, September 4, 13
line to use Linux? • No, but as you can see, all your information is just one line away. With graphical interface it is a bunch of clicks before getting each information. • I hope you guys and girls will learn and love command line whether you use Linux or Mac (or switch to one!) Wednesday, September 4, 13