drop it when you commit a version number. Do not join in the. Gitignore."Three. Troubleshooting exception issues during Installation"In particular, for command-line operations, various installation problems will always exist. I have the following list of the problems and solutions I have encountered, for everyone to participate in the test:(1) Change folder permissions, the installation process may tell you that some folders do not have permission to write, and prompts you:sudo chown-r $ (
: exists and is a named pipe file;-S file: exists and is a socket file;Use the Read command to accept the input:Use read to assign the input value to one or more shell variables:-p Specifies the prompt to display-T TIMEOUTRead reads values from standard input, assigns a variable to each wordAll remaining words are assigned to the last variableRead-p "Enter a filename:" FILEInstance:1, write script/root/bin/argsnum.sh, accept a file path as a parameter, if the number of parameters is less than 1,
;date: Displays the current time.
Mount Mount A hardware device umount Uninstall device
Usage: Mount [parameter] mount point of the device to be mounted
Eg:mount/dev/cdrom
Cd/mnt/cdrom//Enter the disc directory
One. su switches to another person's identity without exiting the login
Usage: SU-L User name (if user name is default, switch to root state)
Eg:su-l netseek (Switch to netseek This user, will be prompted to enter the password)
HBase shell command.
Enter HBase Shell Console$HBASE _home/bin/hbase ShellIf you have Kerberos authentication, you need to use the appropriate keytab for authentication (using the Kinit command), and then use the HBase shell to enter the certificate successfully. You can use the WhoAmI command to view the current user
hbase(main)> whoami
Man
daemon through shell script. #!/bin/Shwhoami=' WhoAmI ' PID'{print '}'if' $PID"") Thenkill $PIDfiNote: The name of the script file does not have the word ' abc ', otherwise it will print out the script name when the PS is executed.Use FIFO to communicate with daemons.Read FIFOvoidReadfifo () {intLen =0; Charbuf[1024x768]; memset (BUF,0,sizeof(BUF)); intFD = open ("/home/test/1/fifo1", o_rdonly); while(len = Read (FD, BUF,sizeof(BUF)))>
To view the operation time of the history record in the Linux operating system, you can do this in the following steps:Learn Linux 1, modify the /etc/profile file, add at the end:exporthisttimeformat= "%f%t ' WhoAmI '" 2, or in the user directory, modify the file . bash_profile, add export histtimeformat= "%f%t ' WhoAmI '"Exit the terminal and log back in.example, check The history operation time:Copy t
; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; margin:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/72/54/ Wkiol1xhtcmtz7vjaaa-2u3kus8341.jpg "width=" 244 "height="/> W Who and WhoAmI W shows who logged in and what the system is doing Who shows the login and login time and login address of the user logged in to the system
(does not update the last modified time of the document)- N: Keep the original document and enter the converted content into the new document for example: dos2unix-n old New examples are as follows: $cat-v killws#!/bin/bash^madmin_dir= "/home/admin" ^mfunction check_user {^m if [[' whoami '! = ' admin ']];then^m Echo ' Apac He can start by admin user,exit! " ^m exit^m fi^m}^m$dos2unix-k killwsdos2unix:converting file killws to UNIX format ... $cat-v
Because the feeling of the Linux command has not much feeling, so specifically to find the bird Brother's book to see, toss a few days to see the basic part of the shell, harvest or pretty big, at least the Linux command is a little feel, and then learn some of the knowledge, in the theoretical knowledge has also been a certain expansion. Not much to say, share the answers to the exercises.
"Bird Brother's Linux private cuisine" Basic article P398 exercises(1) Please create a new script, w
Script This command is used to save the process of the operation in the logScript's command form:script[-a] [-q] [filename][-a] [-q] 安静模式,不显示script[filename] 保存结果的日志名,如果不输制定文件名,默认存入当前目录的 **typescript** 文件中更多参数参考man手册Example description$ScriptScript started,file isTypescript# # #输入script命令, no file name specified, default in typescript file of current directory$ ls/bin/| Head-6bashbunzip2busyboxbzcatbzcmpbzdiff$ WhoAmI gino$Exit ExitScript Done,f
, cannot switch;Parameters:-C ' command ' only runs the command specified here as the specified user;Su-woniu-c ' WhoAmI ' indicates that the Woniu user executes the WhoAmI command, after the execution is complete or the current userChown command:Function: Change the owner or group of a fileUsage: chown[option] ... [OWNER][: [GROUP]] FILE ...chown [OPTION] ...--reference=rfile FILE ...Parameters:-R: Recursi
addition to the root user's ability to perform the operation. to designate a user as an administrator for a user group, use the following command: NBSP;NBSP;GPASSWD-A user Group command function to manage user accounts set the specified user as the user administrator for the specified user group. User administrators can only administer user groups for authorized users (add users to groups or remove users from a group) and do not have permission to manage other user groups. [[emailprotected] ~
Recently migrated some users moved from domain A to another domain B, maintaining SID history in order to facilitate continued access to the old file system. Today, it is found that individual Citrix XenApp programs running in old Domain A do not work.After checking, it is found that the program will automatically run Whoami/group self-test when it starts, and automatically end if there is an unresolved SID. It is estimated that there is a problem wit
Unalias
To cancel the definition of an alias
Unalias del
Other commands
command name
function Description
Examples of Use
Uname
Displays information about the operating system
Uname-a
Clear
Clear screen or window contents
Clear
Env
Show all currently set environment variables
Env
W.H.O.
List all users who are currently logged on
://raw.githubusercontent.com/Homebrew/install/master/install)"The homebrew has been installed to perform:~ Sudo brew update/brew updateThe old version of homebrew is required for sudo while the new version ... Specifically I do not know in which version, the removal of sudo, you can not add sudo update, if the failure plus. After the update installation software may error, need to check/users/$ (whoami)/library/logs/homebrew and/users/$ (
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.