标签:而且 mob 产生 lin pre shel profile 输入 查看
[alvin@VM_0_16_centos test]$ script Script started, file is typescript [alvin@VM_0_16_centos test]$ echo hello hello [alvin@VM_0_16_centos test]$ ls test1.py test2 test2.cpp test2.py test3 test3.c test.py typescript WeixinBot wxpy wxRobot [alvin@VM_0_16_centos test]$ exit exit Script done, file is typescript
[alvin@VM_0_16_centos test]$ script ~/alvin-script Script started, file is /home/alvin/alvin-script [alvin@VM_0_16_centos test]$ ll total 64 -rw-rw-r-- 1 alvin alvin 21 Nov 10 09:40 test1.py -rwxrwxr-x 1 alvin alvin 14074 Dec 31 07:35 test2 -rw-rw-r-- 1 alvin alvin 403 Dec 31 07:35 test2.cpp -rw-rw-r-- 1 alvin alvin 2093 Nov 10 10:50 test2.py -rwxrwxr-x 1 alvin alvin 8553 Jan 7 20:03 test3 -rw-rw-r-- 1 alvin alvin 78 Jan 7 20:03 test3.c -rw-rw-r-- 1 alvin alvin 94 Nov 9 23:25 test.py -rw-rw-r-- 1 alvin alvin 489 Jan 11 12:07 typescript drwxrwxr-x 6 alvin alvin 4096 Nov 10 11:19 WeixinBot drwxrwxr-x 6 alvin alvin 4096 Nov 10 11:30 wxpy drwxrwxr-x 11 alvin alvin 4096 Nov 10 11:34 wxRobot [alvin@VM_0_16_centos test]$ echo hello hello [alvin@VM_0_16_centos test]$ exit exit Script done, file is /home/alvin/alvin-script
[alvin@VM_0_16_centos test]$ script cooperate-job Script started, file is cooperate-job [alvin@VM_0_16_centos test]$ echo this is alvin_s job this is alvin_s job [alvin@VM_0_16_centos test]$ ls cooperate-job test1.py test2 test2.cpp test2.py test3 test3.c test.py typescript WeixinBot wxpy wxRobot [alvin@VM_0_16_centos test]$ exit exit Script done, file is cooperate-job
[alvin@VM_0_16_centos test]$ script -a cooperate-job Script started, file is cooperate-job [alvin@VM_0_16_centos test]$ echo this is harry_s job this is harry_s job [alvin@VM_0_16_centos test]$ pwd /home/alvin/test [alvin@VM_0_16_centos test]$ exit exit Script done, file is cooperate-job
vim ~/.bash_profile
/usr/bin/script -qa your_path #补齐自己的路径
Last login: Fri Jan 11 15:13:37 2019 from 119.33.28.6 Script started, file is /home/alvin/test/script-file #提示 [alvin@VM_0_16_centos ~]$
标签:而且 mob 产生 lin pre shel profile 输入 查看
原文地址:https://www.cnblogs.com/aksir/p/10308351.html