vim学习
vim在当前行添加下一行,按o即可
  1 set nu 设置行号
  2 syn on 打开语法
  3 set encoding=utf-8 设置编码
  4 set autoindent 自动对齐
  5 set incsearch 查找时很方便,不需要回车
  6 set smartindent 智能对齐 >查看详情
https://www.cnblogs.com/chinaifae/p/10190972.html
在terminal中输入iptables然后
service iptables save
保存到
cat /etc/sysconfig/iptables
编辑/etc/sysconfig/iptables
>查看详情
cat /tmp/test/file.txt
hello the world
god is a girl
大家好
pi@bananapi ~/shell $ cat filewhile.sh
#!/bin/bash
while read line;
do echo $line
done < <(find . -typ >查看详情
 统计一句话每个字母出现的频率
root@yansy:/home/yansy#output=`echo "asdfaadfs"|sed 's/[^\n]/&\n/g'|sed '/^$/d'|sort|uniq -c |tr -d '\n'` root@yansy:/home/yansy# echo $output3 a 2 d 2 f 2 s
tr >查看详情
root@localhost ~ # mysql -uroot -p -h127.0.0.1 test
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 22123
Server version: 5.1.60-log S >查看详情
 example:
<!--
create procedure in_out (in parameter integer)
begin
declare variable varchar(20);
if parameter=1 then
set variable='MySQL';
else
set variable='PHP';
end if;
insert in >查看详情
 example:
<!--
SHOW CREATE PROCEDURE hi;
create procedure inoutsp(in id int,out str varchar(50))
begin
if id=1 then
set str="1->hello";
else
set str="othernumber->hi";
end if;
>查看详情
https://m.656463.com/wenda/PHPznmhsndywblhs_491我想在A类中调用我的函数而不是在匿名函数内的B类中调用它怎么做? 这是我的示例代码。 <?php class A extends Z{ public function sampleFunction($post){ // code here } >查看详情