how to use typeset?

admin@xxx:~$ typeset
BASH=/bin/bash
BASH_VERSINFO=([0]="2" [1]="05a" [2]="0" [3]="1" [4]="release" [5]="i386-slackware-linux-gnu")
BASH_VERSION='2.05a.0(1)-release'
C2CDB_HOME=/usr/local/c2cdb
COLUMNS=132
DIRSTACK=()
EUID=1005
GROUPS=()
HISTFILE=/home/admin/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/admin
HOSTNAME=db_auction1
HOSTTYPE=i386
IFS=$' \t\n'
INPUTRC=/etc/inputrc
LC_ALL=en_US.ISO_8859-1
LD_LIBRARY_PATH=/usr/local/c2cdb/lib:/usr/local/mysql/lib:/usr/local/mysql/lib/mysql
LESS=-M
LESSOPEN='|lesspipe.sh %s'
LINES=46
LOGNAME=admin
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.bz2=01;31:*.rpm=01;31:*.deb=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.mpg=01;37:*.avi=01;37:*.mov=01;37:'
LS_OPTIONS=' --color=auto -F -b -T 0'
MACHTYPE=i386-slackware-linux-gnu
MAIL=/var/spool/mail/admin
MAILCHECK=60
MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man
MINICOM='-c on'
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:.:/usr/local/mysql/bin
PIPESTATUS=([0]="0")
PPID=12363
PS1='\u@\h:\w\$ '
PS2='> '
PS4='+ '
PWD=/home/admin
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comments:emacs
SHLVL=1
SSH2_CLIENT='172.16.1.162 38794 172.16.161.26 36000'
SSH2_SFTP_LOG_FACILITY=-1
T1LIB_CONFIG=/usr/share/t1lib/t1lib.config
TERM=vt100
UID=1005
USER=admin
_=c2cdb
file=/etc/profile.d/t1lib.sh
mc ()
{
    if [ "$USER" = "root" -a ! "`id | cut -b1-5`" = "uid=0" ]; then
        /usr/bin/mc "$@";
    else
        if [ ! "$USER" = "root" -a "`id | cut -b1-5`" = "uid=0" ]; then
            /usr/bin/mc "$@";
        else
            mkdir -p $HOME/.mc/tmp 2>/dev/null;
            chmod 700 $HOME/.mc/tmp;
            MC=$HOME/.mc/tmp/mc-$$;
            /usr/bin/mc -P "$@" >"$MC";
            cd "`cat $MC`";
            rm -f "$MC";
            unset MC;
        fi;
    fi
}

# man typeset
No manual entry for typeset
# typeset -u var=abc
bash: typeset: unknown option: `-u'
typeset: usage: typeset [-afFrxi] [-p] name[=value] ...

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/94384/viewspace-600280/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/94384/viewspace-600280/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
To use PyQt, follow these steps: 1. Install PyQt: PyQt can be installed using pip, the Python package installer. Open your terminal or command prompt and type "pip install PyQt5" to install the latest version of PyQt. 2. Create a PyQt application: Once installed, you can create a PyQt application by importing the necessary modules and creating a QApplication object. This object is responsible for managing the application's GUI. 3. Create a GUI: After creating the QApplication object, you can create the GUI for your application using widgets such as QLabel, QPushButton, and QLineEdit. 4. Connect signals and slots: To add functionality to your PyQt application, you can connect signals and slots. Signals are emitted when a particular event occurs, such as a button press, and slots are functions that are called in response to these events. 5. Run the application: Once you have created the GUI, connected signals and slots, and written the necessary functions, you can run your PyQt application by calling the QApplication.exec_() method. Here's an example of a simple PyQt application that displays a label and a button: ``` import sys from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QPushButton class MyApp(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setWindowTitle('My PyQt App') self.setGeometry(100, 100, 300, 200) self.label = QLabel('Hello, PyQt!', self) self.label.move(50, 50) self.button = QPushButton('Click me!', self) self.button.move(50, 100) self.button.clicked.connect(self.on_button_click) def on_button_click(self): self.label.setText('Button clicked!') if __name__ == '__main__': app = QApplication(sys.argv) ex = MyApp() ex.show() sys.exit(app.exec_()) ``` This code creates a simple PyQt application with a label and a button. When the button is clicked, the label's text is changed to "Button clicked!".
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值