摘要:
sudo su - sas Both su and sudo are used to gain administrative (root) privileges in Linux, but they work in fundamentally different ways regarding sec
阅读全文
posted @ 2022-11-28 09:17
ZhangZhihuiAAA
阅读(1)
推荐(0)
摘要:
# Test Oracle connection nc -zv db.abc.com 1521 # Test Hive connection nc -zv hdp.abc.com 10000
阅读全文
posted @ 2022-11-11 13:44
ZhangZhihuiAAA
阅读(22)
推荐(0)
摘要:
Two solutions: 1. sudo mount /tmp -o remount,exec 2. export TMPDIR=$HOME/tmp before execute the failed command
阅读全文
posted @ 2022-11-10 13:23
ZhangZhihuiAAA
阅读(870)
推荐(0)
摘要:
[zzh@rext03-0322 ~]$ ls ~/project/deploy/mirrored aaa a.zip b.jwt d.09_202211071.tgz [zzh@rext03-0322 ~]$ ls ~/project/deploy/mirrored | wc -l 4 [zzh@
阅读全文
posted @ 2022-11-08 11:01
ZhangZhihuiAAA
阅读(30)
推荐(0)
摘要:
frank@ZZHPC:/mnt/d/WSL_shared$ sudo apt install icdiff frank@ZZHPC:/mnt/d/WSL_shared$ icdiff -N 1.txt 2.txt 1.txt 2.txt 102 ### @1=1 102 ### @1=1 103
阅读全文
posted @ 2022-10-24 17:03
ZhangZhihuiAAA
阅读(28)
推荐(0)
摘要:
A here document is used to redirect input into an interactive shell script or program. We can run an interactive program within a shell script without
阅读全文
posted @ 2022-10-24 11:50
ZhangZhihuiAAA
阅读(22)
推荐(0)
摘要:
touch -d '181 days ago' test.txt touch -d '2022-03-20' test.txt
阅读全文
posted @ 2022-09-22 15:09
ZhangZhihuiAAA
阅读(22)
推荐(0)
摘要:
PS E:\projects\default\logs> Select-String "yrc_reg_load_2022052*" -Pattern "ERROR:"
阅读全文
posted @ 2022-08-08 12:03
ZhangZhihuiAAA
阅读(61)
推荐(0)
摘要:
grep -ri --exclude-dir="archive" cary
阅读全文
posted @ 2022-07-26 08:25
ZhangZhihuiAAA
阅读(25)
推荐(0)
摘要:
zzh@ZZHPC:~$ echo $a zzh@ZZHPC:~$ a=111 zzh@ZZHPC:~$ a=${a:-aaa} zzh@ZZHPC:~$ echo $a 111 zzh@ZZHPC:~$ echo $b zzh@ZZHPC:~$ b=${b:-bbb} zzh@ZZHPC:~$ e
阅读全文
posted @ 2022-05-15 22:17
ZhangZhihuiAAA
阅读(27)
推荐(0)