1. Password security
The/etc/passwd file in the UNIX system contains all the information that the system needs to know about each user (the encrypted password may also be stored in the/etc/shadow file).
/ETC/PASSWD contains the user's login name, encrypted password, user number, user group number, user comment, user home directory, and user
The shell program used. Where the user number (UID) and the user group number (GID) are used to uniquely iden
UNIX® has its own dialect, and its command vocabulary is very large. But you don't need to master all the content at once. This article describes a number of command line combinations that promote your mastery of UNIX languages.
When you travel to a country that uses different languages, you may need to master some of
The following describes how to set the Unix telnet command. We have analyzed some of the commands and codes. Then this code is used as a monitoring program. After the event is triggered, telnet to Sco unix to execute the command and obtain the command result. After several d
As you know, it is sometimes necessary to terminate all Oracle processes or a specified set of Oracle processes. When the database is "locked" and you cannot enter Server Manager to "gently" Terminate the database, you can use the kill command in UNIX to terminate all Oracle processes-this is one of the common uses of the kill command.To terminate an Oracle instance on a
] ~]#/etc/profile or [[email protected] ~] #source/etc/profileMake the change effective, if there is no error stating the success.Verify that there is data in the log[Email protected] ~]# More/var/log/201107.log2011-07-21 17:29:08 ##### Root PTS/2 (192.168.23.250) # # # # # # # /etc/profileYou can see that there's already data inside.You can also usePrompt_command= ' {date ' +%y-%m-%d%T ##### USER: $USER IP: $SSH _client PS: $SSH _tty # # (History 1 | {read x cmd; echo "$cmd";}) ";} >> $HISTORY
As you know, there are times when it is necessary to terminate all Oracle processes (process) or a specified set of Oracle processes. When the database is "locked" and you are unable to enter Server Manager to "gently" terminate the database, you can terminate all Oracle processes with the KILL command in Unix-one of the common uses of the KILL command.When you need to terminate an Oracle instance (instance
directory in which MV File1 file2Find finds files using matching expressions. -name "*.C"-printFile display files of type filenameSelect actionCommand name function Description Use exampleHead displays the first few lines of the file head-20 filenameTail display the last few lines of a file tail-15 filenameCut displays some fields in each line of the file cut-f1,7-d:/etc/passwdCOLRM remove several columns from standard input COLRM 8 file2Diff compare
The guy who is familiar with DOS is trying to make UNIX like DOS,
One of them is to set the Unix prompt as $ p $ G. The following describes the method.
The GNU bash (Bourne again shell) is more convenient for different shell settings)And KSh (Korn shell) and tcsh (enhanced version of CSH, CSH in Linux isSymbol connection ). The General Sh (Bourne shell) and CSH settings are cool. One by oneVarious shell se
' ibase=16;obase=1010; AC ' |BC (Linux)0172> Echo ' ibase=16;obase=1010; AC ' |BC (Unix)Output base is too large172Note here: This error will be reported when executing in Unix, but there will still be results.]$ Echo ' ibase=16; AC ' | Bc172Convert decimal to hexadecimal]$ echo ' ibase=10;obase=16;172 ' |BCAC]$ echo ' obase=16;172 ' |BCACconverting decimal to Binary]$ echo ' obase=2;172 ' |BC10101100Conve
As you know, it is sometimes necessary to terminate all Oracle processes or a specified set of Oracle processes. When the database ldquo; locks rdquo, and you cannot enter
As you know, it is sometimes necessary to terminate all Oracle processes or a specified set of Oracle processes. When the database ldquo; locks rdquo, and you cannot enter
As you know, it is sometimes necessary to terminate all Oracle processes or a specified set of Oracle processes. When the database is "locked" and you ca
In many cases, we need to terminate all Oracle processes ). When the database is "locked" and you cannot enter Server Manager to terminate the database, you can use the kill command in UNIX to terminate all Oracle processes. This is one of the common uses of the kill command.To terminate an Oracle instance on a UNIX server, perform the following steps:Terminate a
In the process of using the UNIX operating system, we often use a variety of problems, such as the system suddenly slowed down, the system is prone to panic or the host of the terminal often appear panic, when we often guess, is hard disk space is too small, or insufficient memory? Is there a bottleneck in I/O, or is there a problem with the core parameters of the system? At this time, we should consider using the system to provide us with the SAR
Lienhua342014-10-15ISO C defines the system function for executing a command string in a program. Its statement is as follows,
#include
int system (const char *cmdstring);
The system function calls the fork, exec, and WAITPID functions in its implementation. The system function calls the fork function to create the child process, and then calls '/bin/sh-c cmdstring ' to execute the command
A Unix operating system may paralyze the system after a sudden power failure. At this point, the Unix operating system is not as good as that of Microsoft. In the event of a power failure, the Windows operating system will automatically detect and recover when it is restarted, But Unix will not. We need to manually execute The fsck
There are many commands in the UNIX operating system that can be used to back up files. However, the root file system in the UNIX operating system is a relatively special file. In general, you must uninstall other file systems If you are backing up this type of file. Because the root file system is the ancestor of other filesystems, it backs up files in other file systems at the same time if not uninstalled
Brief introduction
The crontab command is common in UNIX and unix-based operating systems, and is used to set periodically executed instructions. This command reads the instruction from the standard input device and stores it in a "crontab" file for later reading and execution.
Typically, crontab stored instructions
(which symlinks), ln ignores the- l and- p options. Otherwise (if making hard links), the last option specified controls behavior when a TARGET is a symbolic Link. The default is to act as if- p was specified.ln examplesln public_html/myfile1.txtCreate a hard link to the file public_html/myfile1.txt in the current directory.Ln-s Public_html/myfile1.txtCreate a symbolic link to the file public_html/myfile1.txt in the current directory.Ln-s Public_html/webstuffCreate a symbolic link to the direct
including sub-directoriesPWD (print working directory)Displays the path of the current directory (path)CD (change directory)Change the current directory(1)..Represents the parent directory to go to the current directory.(2)/Represents the go to root directory.(3)When there is no option, go to the user's home directoryTouch file_nameCreate a new file, modify the file dateFunction: Change the date of the file, do not modify the contents of the file, if the file does not exist, create a new file.M
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.