??
#号提示是root用户的标志,而ubuntu默认的是普通用户,此时提示是$,并且并不能通过su切换用户命令进行切换,通常来说使用sudo即可完成对应的工作,但是如果在某些情况下希望使用带#的提示符,可以打开一个带超级用户权限的shell
alloy@ubuntu:~$ sudo -s
[sudo] password for alloy:
root@ubuntu:~#...
分类:
其他好文 时间:
2014-07-22 23:06:12
阅读次数:
281
最近在做3DES加密,在本地window下面运行ok的程序,放到linux环境上竟然报错:
java.security.NoSuchAlgorithmException: Cannot find any provider supporting DESede/CBC/PKCS5Padding
at javax.crypto.Cipher.getInstance(Ciphe...
分类:
编程语言 时间:
2014-07-22 23:05:35
阅读次数:
1021
Vi编辑器修改文件.bash_profile可解决backspace出现乱码问题
使用SecureCRT或是pietty_ch连接到一台安装有Oracle DB 10g的RHEL4.2的机器,linux使用的shell是默认的bash。
在bash提示符下,使用Del键或者Backspace键...
分类:
其他好文 时间:
2014-07-22 23:01:14
阅读次数:
344
这道题在前两个的基础上做稍微改进就可以。下面是AC代码: 1 /** 2 * Design an
algorithm to find the maximum profit. You may complete at most two transactions.
3 * @pa...
分类:
其他好文 时间:
2014-07-22 23:01:13
阅读次数:
251
*************************** list.txt : 目录
********************************1. variable.sh2. condition.sh3. control.sh4.
AndOr.sh5. statementBlock.sh6. ...
分类:
系统相关 时间:
2014-07-22 23:00:55
阅读次数:
382
这道题,采用动态规划算法。from top to
down,把到每个节点的最小路径和都求出来。下面是AC代码: 1 /** 2 * Given a triangle, find the minimum path
sum from top to bottom. 3 * Each ...
分类:
其他好文 时间:
2014-05-02 12:19:23
阅读次数:
382
Requirement-Driven Linux Shell
ProgrammingRequirement-Driven Linux Shell ProgrammingTable of Contents1. Where
can I find the basic Material about Linu...
分类:
系统相关 时间:
2014-05-01 20:40:05
阅读次数:
678
题目: Given a string S, find the longest palindromic
substring in S. You may assume that the maximum length of S is 1000, and there
exists one unique lo...
分类:
其他好文 时间:
2014-05-01 20:07:13
阅读次数:
429
读研几年主要做的是控制领域的开发研究,做的硬件以及底层开发比较多。现在毕业了,开始发力软件领域,那么就让我从最简单基础的shell编程开始吧争取打扎实基础。
从程序员的角度来看,Shell本身是一种用C语言编写的程序,从用户的角度来看,Shell是用户与Linux操作系统沟通的桥梁。用户既可以...
分类:
其他好文 时间:
2014-05-01 19:58:41
阅读次数:
357
妈咪,我找到了! -- 15个实用的Linux
find命令示例http://www.oschina.net/translate/15-practical-linux-find-command-examples?p=2#comments爹地,我找到了!
-- 15个极好的Linux find命令示例...
分类:
系统相关 时间:
2014-05-01 19:41:30
阅读次数:
429