码迷,mamicode.com
首页 >  
搜索关键字:bash shell read    ( 57440个结果
51 ubuntu下打开#号提示(切换到root)
?? #号提示是root用户的标志,而ubuntu默认的是普通用户,此时提示是$,并且并不能通过su切换用户命令进行切换,通常来说使用sudo即可完成对应的工作,但是如果在某些情况下希望使用带#的提示符,可以打开一个带超级用户权限的shell alloy@ubuntu:~$ sudo -s [sudo] password for alloy:  root@ubuntu:~#...
分类:其他好文   时间:2014-07-22 23:06:12    阅读次数:281
Vi编辑器修改文件.bash_profile可解决backspace出现乱码问题,rlwrap 的安装。
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
LInux Shell 脚本笔记
*************************** list.txt : 目录 ********************************1. variable.sh2. condition.sh3. control.sh4. AndOr.sh5. statementBlock.sh6. ...
分类:系统相关   时间:2014-07-22 23:00:55    阅读次数:382
/bin/bash^M: bad interpreter: 没有那个文件或目录
运行脚本时出现了这样一个错误,打开之后并没有找到所谓的^M,查了之后才知道原来是文件格式的问题,也就是linux和windows之间的不完全兼容。。。具体细节不管,如果验证:vim test.sh:set ff?如果出现fileforma=dos那么就基本可以确定是这个问题了。:set filefo...
分类:其他好文   时间:2014-07-22 23:00:13    阅读次数:243
/usr/local/lib/libz.a: could not read symbols: Bad value
64位系统中,安装freetype时,出现这个问题。后来发现,此问题进出现在64位系统中。       修复方法: cd zlib-1.2.3 //进入zlib目录 CFLAGS="-O3 -fPIC" ./configure //使用64位元的方法进行编译 make make install        然后,进入freetyp...
分类:其他好文   时间:2014-05-02 23:50:23    阅读次数:397
UVA之537 - Artificial Intelligence?
Artificial Intelligence?  Physics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils have to read and underst...
分类:其他好文   时间:2014-05-02 23:39:35    阅读次数:485
HDFS追本溯源:租约,读写过程的容错处理及NN的主要数据结构
Lease 的机制:hdfs支持write-once-read-many,也就是说不支持并行写,那么对读写的互斥同步就是靠Lease实现的。Lease说白了就是一个有时间约束的锁。客户端写文件时需要先申请一个Lease,对应到namenode中的LeaseManager,客户端的client name就作为一个lease的holder,即租约持有者。LeaseManager起什么作用呢? 读写过程的容错是怎么做的?数据块是如何复制的?数据块的恢复机制?本文都有涉及。...
分类:其他好文   时间:2014-05-02 23:22:14    阅读次数:450
JPEG格式 详解
里面关于huffman table 解释的很清楚  地址  http://read.pudn.com/downloads63/doc/220135/JPEG.pdf...
分类:其他好文   时间:2014-05-01 18:21:36    阅读次数:305
使用ssh过程中对数据库进行update时报错
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition...
分类:数据库   时间:2014-05-01 18:16:35    阅读次数:377
iOS国际化时遇到的错误:read failed: the data couldn't be read because it isn't in the correct format.
其实这个错误很简单,就是当我们在国际化的时候,写key,写着写着就忘了加 ";" 所以查看一下自己的Localization文件就可以了...
分类:移动开发   时间:2014-05-01 08:43:53    阅读次数:660
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!