Some linux Study Notes-general Linux technology-Linux technology and application information. The following is a detailed description. Create an ext3 File System
Mkfs-t ext3/dev/hdxy
============
Change file authorization
Chmod u + x, g + w, o-r/test1/file1
Chmod u = rwx, g = rw/test1/file1
============
Authorize directory
Chmod-R u = rw, g = rw, o = rw/test1 /*
============
Dd
Dd if =/dev/fd0 of = floppyfile
Dd if = boot. img of =/dev/fd0 bs = 1440 k
Case sensitivity
Dd if =./lowercase of =./uppercase conv = ucase
============
Disk space usage
Du-h
Du-hs display total
Du-ah: show all files and directories
============
Mount
Device Name installation directory file system option Dump Pass
LABEL = // ext3 defaults 1 1
/Dev/cdrom/mnt/cdrom udf, iso9660 iocharset = cp936, auto, owner, kudzu, ro, user 0 0
============
Process Control and Management
Ps-l
Ps-u displays process details about users.
Ps-x displays information about processes running in the background
Top
P sort by CPU usage
M is sorted by memory usage
T sort by running duration
U select a specific user
Top-d 10
============
Tar
Tar cvf test.tar/tmp /*
Tar xvf test.tar
Tar hcvf test.tar/tmp/* Save the link source file
Tar rvf test.tar/tmp/newfile Add a new file to tar
============
Shell
Echo 'date' replaces ''with the command result
Ls-al; cat/tmp/file separate multiple commands
Ls [A-z] * [] specifies the character range
Ls [! AaBb] *-al specifies files out of the character range
============
Shell configuration file
/Etc/profile run every time you log on
~ /. Bash_profile user environment configuration, run every time you log on
~ /. Bashrc run every time bash is run
~ /. Bash_login run every time the user logs on
~ /. Bash_logout run when the user logs out
~ /. Profile and ~ /. Bash_profile features the same
~ /. Bash_history command history
============
Add font in X11
1
Mkdir/usr/share/fonts/myfonts/
============
GnuPG
Generate Key Pair
1 gpg generates Key Pair and automatically creates ~ /. Save the generated file in the gnupg directory.
Gpg -- gen-key
Select the default option to complete, and enter the user information, mainly the corresponding email, such as mail@mail.com, and Passphrase (equivalent to Password)
Transmit the Public Key to the Pulic Key Server for obtaining by other receivers.
Access www.keyserver.net to upload the generated Public Key file content to the server on the add a key page.
Import Public Key from the client
Access www.keyserver.net and use the email address of the Creator to search for Public keys. Select the download file and save it to the newkey.txt file.
Gpg -- import newkey.txt
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.