Linux For Dummies

As an alternative to more widespread operating system, open-source Linux is a little different, but that doesn’t mean you can’t do normal things, such as playing DVDs with it. You may need to get familiar with the Linux commands, but Linux offers easy ways to find help.






>


>


Common Linux Commands


Open-source Linux is a popular alternative to Microsoft Windows, and if you choose to use this low-cost or free operating system, you need to know some basic Linux commands to make your system smoothly. The most common Linux commands are shown in this table.











































































































































CommandDescription
cat [filename]Display file’s contents to the standard output device
(usually your monitor).
cd /directorypathChange to directory.
chmod [options] mode filenameChange a file’s permissions.
chown [options] filenameChange who owns a file.
clearClear a command line screen/window for a fresh start.
cp [options] source destinationCopy files and directories.
date [options]Display or set the system date and time.
df [options]Display used and available disk space.
du [options]Show how much space each file takes up.
file [options] filenameDetermine what type of data is within a file.
find [pathname] [expression]Search for files matching a provided pattern.
grep [options] pattern [filesname]Search files or output for a particular pattern.
kill [options] pidStop a process. If the process refuses to stop, use class="code">kill -9 pid.
less [options] [filename]View the contents of a file one page at a time.
ln [options] source [destination]Create a shortcut.
locate filenameSearch a copy of your filesystem for the specified
filename.
lpr [options]Send a print job.
ls [options]List directory contents.
man [command]Display the help information for the specified command.
mkdir [options] directoryCreate a new directory.
mv [options] source destinationRename or move file(s) or directories.
passwd [name [password]]Change the password or allow (for the system administrator) to
change any password.
ps [options]Display a snapshot of the currently running processes.
pwdDisplay the pathname for the current directory.
rm [options] directoryRemove (delete) file(s) and/or directories.
rmdir [options] directoryDelete empty directories.
ssh [options] user@machineRemotely log in to another Linux machine, over the network.
Leave an ssh session by typing exit.
su [options] [user [arguments]]Switch to another user account.
tail [options] [filename]Display the last n lines of a file (the default is
10).
tar [options] filenameStore and extract files from a tarfile (.tar) or tarball (class="code">.tar.gz or class="code">.tgz).
topDisplays the resources being used on your system. Press q to
exit.
touch filenameCreate an empty file with the specified name.
who [options]Display who is logged on.




>



>


>


How to Use CDs and DVDs with Linux


Just because you’re using open-source Linux as your operating system is no reason to think you can’t play CDs or watch DVDs on your computer. To access or remove disks, just follow these procedures:


To access your CDs/DVDs:



  • If you’re in the GUI, the media should be automatically detected.



  • On the command line, start by typing mount /media/cdrom. If this doesn’t work, look in the /media directory. You may need to use /media/cdrecorder, /media/dvdrecorder, or some other variant.




To remove your CDs/DVDs:



  • In the GNOME desktop, right-click the CD icon and select Eject from the context menu. If you're using the KDE desktop, select the Device Notifier icon in the Panel, then select the CD icon to eject.



  • On the command line, type umount /media/cdrom, or change cdrom to whatever you had to use to mount the item.







>



>


>


How to Get Help on Linux


You may find yourself needing more help using Linux than you do using more pervasive operating systems, like Windows. Fortunately, Linux provides fairly easy ways to find help, as shown here:























Type This . . .To Find This . . .
man -k [keyword]Search a database for commands that involve the class="code">keyword. Can also be used as class="code">apropos [keyword].
info [command]Display a file’s help information in an alternate
format.
man [command]Display a file’s help information.
whatis [command] Display a short blurb about the command.

The Fedora Documentation Project is growing its collection of help manuals for Fedora users. In addition, there’s the Fedora Forum, Fedora News, and the Unofficial Fedora FAQ. If you’re tapping into Ubuntu, the Ubuntu Wiki Project provides basic information on how to get started with most common desktop tasks and has a community documentation project where Ubuntu users can contribute their own guides and tutorials.





>






>
dummies


Source:http://www.dummies.com/how-to/content/linux-for-dummies-cheat-sheet.html

No comments:

Post a Comment