码迷,mamicode.com
首页 >  
搜索关键字:su - root    ( 2187个结果
磁盘分区练习题 - 第四周
1、新建用户archlinux , 要求其家目录为/users/archlinux,而后su切换至archlinux用户,复制/etc/pam.d目录至自己的家目录 2、创建一个至少有两个PV组成的大小为20G的名testvg的VG;要求PE大小为16MB,而后在卷组中创建大小为5G的逻辑卷test ...
分类:其他好文   时间:2019-03-10 16:20:54    阅读次数:296
expect用法举例
1 expect -c 'spawn su - oracle -s check_tablespace.shexpect "Password:"send "oracle\n\r"expect "eof"exit' 2 文件形式: #!/usr/bin/expectspawn su - oracle - ...
分类:其他好文   时间:2019-03-08 15:15:53    阅读次数:198
django-28.发送邮件send_mail
前言 django发邮件的功能很简单,只需简单的配置即可,发邮件的代码里面已经封装好了,调用send_mail()函数就可以了 send_mail()函数 先导入send_mail函数from django.core.mail import send_mail,进入源码里面看看具体函数对应的参数su ...
分类:其他好文   时间:2019-03-06 14:54:11    阅读次数:229
2018ECfinal J. Philosophical Balance
2018ECfinal J. Philosophical Balance 题目大意: 给出一个字符串 $s$ ,你需要给每一个 $i$ 一个 $[0,1]$ 之间的权值 $k_i$ ,且满足 $\sum k_i=1$ 。并且最小化 $$ \max_{i=1}^n(\sum_{j=1}^nlcp(su ...
分类:其他好文   时间:2019-03-05 15:37:01    阅读次数:292
ORA-29701: unable to connect to Cluster Synchronization Service
修改主机名后,has无法启动,将has启动之后,尝试ASMCA,出现如图提示: 再尝试登陆asm实例,出现日下提示: [oracle@edgzrip2-+ASM ~]$ sqlplus / as sysasm SQL*Plus: Release 11.2.0.3.0 Production on Su ...
分类:其他好文   时间:2019-03-03 09:20:05    阅读次数:239
HDU 6370 Werewolf 【并查集】
任意门:http://acm.hdu.edu.cn/showproblem.php?pid=6370 Werewolf Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Su ...
分类:其他好文   时间:2019-02-26 13:29:40    阅读次数:207
Bash shell的配置文件
Bash的配置文件:两类:Profile类:为交互式登陆的shell进程提供配置Bashrc类:为非交互式登陆的shell进程提供配置登陆类型:交互式登陆shell进程:直接通过某终端输入账号和密码后登陆打开的shell进程:使用su命令:su–centos,或者使用su-lcentos执行的登陆切换;非交互式登陆shell进程:Sucentos执行的登陆切换;图形界面下打开的终端;运行脚本Pro
分类:系统相关   时间:2019-02-25 09:23:06    阅读次数:300
Linux命令大全汇总,让你工作更有效率!
基础命令 useradd:用户名 -m:创建新用户 passwd 用户名:为用户设置密码(当创建新用户后,就需要设置密码) whoami:查看当前用户名 exit :退出当前用户,返回之前切换过来的用户 ssh 用户名@IP端口地址:远程连接用户名的ubuntu的电脑 su 用户名:切换用户,但是目 ...
分类:系统相关   时间:2019-02-23 10:35:39    阅读次数:204
1030 Travel Plan (30 分)
1030 Travel Plan (30 分) A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are su ...
分类:其他好文   时间:2019-02-22 23:09:41    阅读次数:161
HDU 4725 The Shortest Path in Nya Graph(构图)
The Shortest Path in Nya Graph Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 13445 Accepted Su ...
分类:其他好文   时间:2019-02-22 23:02:35    阅读次数:208
2187条   上一页 1 ... 34 35 36 37 38 ... 219 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!