|
|
续8
View image
gthumb (not included in RH9)
Edit image
gimp
Digit camera
gtkam
Shell fundamental
pwd - list current directory
cd path - change directory
cd - back to home directory
cd.. - move up one directory
cd../.. - move up two directory
cd ~otheruser - takes you to otheruser's login directory, if otheruser has granted you permission
su - change to root in your own login shell, exit to go back
su - - change to root in root login shell, exit to go back
ls - display content in current directory
ls -a - show all content begin with dot (dot files is acting like hiden file)
ls -al - show detail messages
other option for ls
-a - all. Lists all the files in the directory, including the hidden files (.filename). The .. and . at the top of your list refer to the parent directory and the current directory, respectively.
-l - long. Lists details about contents, including permissions (modes), owner, group, size, creation date, whether the file is a link to somewhere else on the system and where its link points.
-F - file type. Adds a symbol to the end of each listing. These symbols include / to indicate a directory; @ to indicate a symbolic link to another file; and * to indicate an executable file.
-r - reverse. Lists the contents of the directory from back to front.
-R - recursive. This option lists the contents of all directories below the current directory recursively.
-S - size. Sorts files by their sizes.
locate string - find file name include string in the hole system (include in slocate database which controled by cron daemon, using anacron on the machine which is not for continuing using 24 hours a day)
updatedb - Manually update slocate database
lpr filename - print file to printer
lpq - view the print job waiting in print queue
lprm job number - cancel print job
clear - clear terminal window
reset - reset the terminal window with the default value( useful when terminal window the text you are typing does not match the output on the monitor)
cat filename - display content of file
redirection, > - output, < - input, >> adding information to the file
head filename - read first few lines of the file
head -20 filename - read first 20 lines of the file
tail filename - read last 10 lines of the file
tail -f filename - read the new messages after last updated
grep string filename - get the lines with the string in file (-i for case-insensitive)
chmod (u g o a)(+ - =) (r w x) - change file permission
chmod xxx filename - r=4, w=2,x=1,-=0, so owner with r,w group with rw, other users with r should be chmod 664 filename
file filename - check the file type( for example: ascII text file)
file-rollar - an achieve and compress file tool
gzip(.gz), bzip2(.bz2), zip(.zip) - compress tool
gunzip, bunzip2, unzip - uncompress tool
tar -cvf filename.tar directory/file - archive file (-c - create a new archive. -f - when used with the -c option, use the filename specified for the creation of the tar file; when used with the -x option, unarchive the specified file. -t - show the list of files in the tar file. -v - show the progress of the files being archived. -x - extract files from an archive. -z - compress the tar file with gzip. -j - compress the tar file with bzip2.
touch filename - crate new file with the name of filename
cp source destination - copy files (source - filename, destination - destination directory, -i - interactive. Prompts you to confirm if the file is going to overwrite a file in your destination. This is a handy option because it can help prevent you from making mistakes. -r - recursive. Rather than just copying all the specified files and directories, this will copy the whole directory tree, subdirectories and all. -v - verbose. Shows the progress of the files as they are being copied. )
mv source destination - move files(source - filename, destination - destination directory, -i - interactive. This will prompt you if the file you have selected will overwrite an existing file in the destination directory. This is a good option, because like the -i option for cp, you will be given the chance to make sure you want to replace an existing file. -f - force. Overrides the interactive mode and moves without prompting. Unless you know what you are doing, this option is dangerous; be very careful about using it until you become more comfortable with your system. -v - verbose. Shows the progress of the files as they are being moved.
mkdir directoryname - make directory
rm directoryname - delete file or directory (-i - interactive. Prompts you to confirm the deletion. This option can stop you from deleting a file by mistake. -f - force. Overrides interactive mode and removes the file(s) without prompting. This might not be a good idea, unless you know exactly what you are doing. -v - verbose. Shows the progress of the files as they are being removed. -r - recursive. Will delete a directory and all files and subdirectories it contains.)
rmdir, rm -r direcotoryname - remove directory
vi .bash_profile - edit path
source .bash_profile - effect the profile immediately
mount fat of fat32 partition
mkdir /mnt/windows
mount -t vfat /dev/hda1 /mnt/windows
to automatically mount the fat or fat32 partition, edit /etc/fstab file, To navigate through directories or files with spaces, surround the name of the directory or file with quotation marks, as in ls "Program Files".
to glimpse the history of your commands by typing history xx at the shell prompt( xx is the number of last typed xx command), or less .bash_history at the shell prompt
other short cut of command:
"Bang, bang": Typing !! (called "bang bang" executes the last command in the history.
"Bang number": Typing !number (as in !302) will execute the command which is numbered 302 in the history file.
"Bang string": Typing !string (as in !rpm) will execute a command with the most recent matching string from the history file.
[Up arrow] and [down arrow]: At the shell or GUI terminal prompt, you can press the up arrow to move back through previous commands in your history list (the down arrow will move you forward through the commands) until you find the command you want. Press [Enter] to execute the command, just as if you had typed it on the command line |
|