shell程式設計例子(2),持續更新中
1.當前shell切換到指定目錄:用source執行:source 1.sh
#!/bin/bash
pwd
cd /home/share.21/
pwd
執行結果:
2. 命令執行的結果賦值給變數
#!/bin/bash
cd /home/share.21/
current_dir1=`pwd`
current_dir2=$(pwd)
echo $current_dir1
echo $current_dir2
執行結果:
相關推薦
shell程式設計例子(2),持續更新中
技術標籤:linuxshell 1.當前shell切換到指定目錄:用source執行:source 1.sh #!/bin/bash
shell程式設計例子(1),持續更新中
技術標籤:linuxshell 1.hello word #!/bin/bash echo "hello word" 2. 變數 #!/bin/bash #變數
IntelliJ IDEA 2020.2 啟用 破解,Jetbrains IDEA 全家桶破解,持續更新中...
申明:本教程 IntelliJ IDEA 破解補丁、啟用碼均收集於網路,請勿商用,僅供個人學習使用,如有侵權,請聯絡作者刪除
實用前端裝逼技巧 108 式,持續更新中~
你在拼多多到處找人砍價,他在滴滴打車求人助力,我在電子廠擰螺絲擰到凌晨,我們都有光明的未來!早安,打工人!
【建議收藏】2020大廠JavaScript面試題彙總,持續更新中~
1.說幾條寫JavaScript的基本規範 不要在同一行宣告多個變數請是用 ===/!== 來比較 true/false 或者數值使用物件字面量替代 new Array 這種形式不要使用全域性函式Switch 語句必須帶有 default 分支If 語句必須使用大
Mongodb快速上手(未完成,持續更新中)
1. MongoDB相關概念 1.1 業務應用場景 傳統的關係型資料庫(如MySQL),在資料操作的“三高”需求以及應對Web2.0的網站需求面前,顯得力不從心。
js面試題,程式碼實現,持續更新中
h4 { margin-top: 27px !important } code { font-size: 14px; color: rgba(255, 80, 44, 1) } .note-label { color: rgba(102, 102, 102, 1) }
Spring Boot 2.x 專案中使用Redis快取封裝 (持續更新中....)
Spring Boot 2.x 專案中使用Redis快取封裝 專案中多使用Redis快取,團隊協作中Redis程式碼經常重複,並且不規範,這裡封裝RedisService用做公共服務通過繼承的方式呼叫
IntelliJ IDEA 2021.2 永久啟用詳細破解教程(親測有效,持續更新)
下載 IDEA2021.2 下載最新版IDEA2021.2版本地址:(本文是以windows版本講解的,其他作業系統是一樣的。)https://www.jetbrains.com/idea/
VUE、JS之 記錄一些工作中遇到的小問題,持續更新~
開個帖記錄一些工作中遇到的問題吧,很多都是因為沒有注意到,或者基礎薄弱導致的~
es基礎命令(版本6.3.2)(持續更新中)
https://blog.csdn.net/xiaoi123/article/details/80913036?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.nonecase&depth_1-utm_source=distribute.pc_relevant.none-t
透過面試題掌握Redis【持續更新中】
最近是把《Redis設計與實現》看完了,然後也對每一章寫了讀書筆記。但是總感覺自己掌握得不夠,所以就在網上搜集了一些Redis相關的面試題,然後自己去翻筆記,看書,查資料嘗試著去解答,目前這篇文章還沒有完全覆蓋
MYSQL 優化(二),持續更新收藏
索引部分 1:聯合索引如果能覆蓋索引 會省去回表操作 效率大大提高 所以select的欄位 儘量只查詢聯合索引裡面的欄位
2020牛客寒假演算法訓練營第一場題解(持續更新中)
A題honoka和格點三角形 這一題要求計算格點圖中”好三角形“的數量。好三角形是面積為1,至少有一條邊平行於x軸或y軸,並且頂點都在格點上的三角形。
2020牛客寒假演算法訓練營第二場題解(持續更新中)
A做遊戲 貪心,最多贏多少場只要保證儘可能贏就行了,即石頭對應剪刀,剪刀對應布,布對應石頭。
ACM模板 - 持續更新中
快速冪 typedef long long ll; ll mod_pow(ll x,ll n,ll mod) { ll res=1; while(n>0) { if(n&1)//if(n%2==1)
富文字編輯器TinyMCE的使用(持續更新中......)
TinyMCE的使用 專案使用vue-cli 3.x版本,tinymce 5 1、npm install tinymce -S 2、npm install @tinymce/tinymce-vue
學生選課系統(未完成,持續更新)
class Student:def __init__(self,name,lesson):self.name=nameself.lesson=lessondef choice_lessons(self):passdef scan_lessons(self):passdef check_lessons(self):passdef logout(self):passclass Mangements:d
一個半路出家的滲透測試工程師(二)(持續更新中)
第一份工作持續了三個月,離職那一天的記憶過去了很久依然無法從腦海裡抹除。
多執行緒與高併發學習筆記(持續更新中)
一、 基礎概念 什麼是執行緒 什麼是程序?什麼是執行緒? 程序是系統中正在執行的一個程式,程式一旦執行就是程序。