99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
首頁精彩閱讀Linux瀏覽文件命令:cat、less、more詳解
Linux瀏覽文件命令:cat、less、more詳解
2020-06-10
收藏

今天我們來詳細(xì)講解下,Linux瀏覽文件的三種命令,它們分別是:cat、less、more!

cat命令: 一次性在終端中顯示文件的所有內(nèi)容

cat Facebook首席運(yùn)營官桑德伯格《Lean\ In》.txt

cat命令顯示出多少行呢?

參數(shù):n 由 1 開始對所有輸出的行數(shù)進(jìn)行編號(hào)

cat -n Facebook首席運(yùn)營官桑德伯格《Lean\ In》.txt

cat命令還可以連接多個(gè)文本的內(nèi)容一起輸出

cat -n hello.txt word.txt

less命令: 分頁顯示文件內(nèi)容

less和cat最大的區(qū)別是:less命令會(huì)分一頁一頁地顯示文件內(nèi)容,cat會(huì)一次性全部顯示

less Facebook首席運(yùn)營官桑德伯格《Lean\ In》.txt

這時(shí)我們會(huì)看到 less命令不會(huì)一次性讀取 ‘Facebook首席運(yùn)營官桑德伯格《Lean\ In》.txt’ 文本里的全部內(nèi)容,而是會(huì)分頁讀取,每一頁讀取內(nèi)容的多少是由你的終端大小來決定的

less命令瀏覽文件的快捷鍵:

注意:這里快捷鍵的字母都是區(qū)分大小寫的

less命令瀏覽文件高級(jí)快捷鍵的使用

“=”鍵:顯示當(dāng)前頁面的內(nèi)容是文件中第幾行到第幾行,按Enter鍵撤銷

Facebook首席運(yùn)營官桑德伯格《Lean\ In》.txt lines 5-10/287 byte 4308/171635 3% (press RETURN)

下面我們就對這段描述信息座椅詳細(xì)的解釋:

Facebook首席運(yùn)營官桑德伯格《Lean\ In》.txt: 表示當(dāng)前正在讀取文件的名稱

lines 5-10/287: 表示這個(gè)文本總共有287行,當(dāng)前正在讀取的是5-10行

byte 4308/171635: 表示文本總共有171635個(gè)字符,當(dāng)前讀取了4308個(gè)字符

%3: 表示當(dāng)前讀取的內(nèi)容占了文本內(nèi)容總共的 %3

h鍵:進(jìn)入快捷鍵的幫助文檔,按q鍵退出

/(斜杠):進(jìn)入搜索模式

如:搜索關(guān)鍵字 more

要想在搜索中跳轉(zhuǎn)到下一個(gè)符合的內(nèi)容,可以按n鍵,按N鍵可以跳到上一個(gè)符合的內(nèi)容

more命令

more命令和less命令相似,但沒有l(wèi)ess命令強(qiáng)大

如:more命令不能往后翻頁,只能一路往前翻頁

這是因?yàn)閙ore命令是在less命令之前出現(xiàn)的

注:這是Facebook首席運(yùn)營官桑德伯格《Lean In》的部分篇章,大家可以用這部分篇章來對cat、less命令做一次動(dòng)手實(shí)操的練習(xí),這樣可以幫助大家更好的理解less命令的強(qiáng)大之處

I GOT PREGNANT with my first child in the summer of 2004. At the time, I was running the online sales and operations groups at Google. I had joined the company three and a half years earlier when it was an obscure start-up with a few hundred employees in a run-down office building. By my first trimester, Google had grown into a company of thousands and moved into a multibuilding campus.

My pregnancy was not easy. The typical morning sickness that often accompanies the first trimester affected me every day for nine long months. I gained almost seventy pounds, and my feet swelled two entire shoe sizes, turning into odd-shaped lumps I could see only when they were propped up on a coffee table. A particularly sensitive Google engineer announced that “Project Whale” was named after me.

One day, after a rough morning spent staring at the bottom of the toilet, I had to rush to make an important client meeting. Google was growing so quickly that parking was an ongoing problem, and the only spot I could find was quite far away. I sprinted across the parking lot, which in reality meant lumbering a bit more quickly than my absurdly slow pregnancy crawl. This only made my nausea worse, and I arrived at the meeting praying that a sales pitch was the only thing that would come out of my mouth. That night, I recounted these troubles to my husband, Dave. He pointed out that Yahoo, where he worked at the time, had designated parking for expectant mothers at the front of each building.

The next day, I marched in—or more like waddled in—to see Google founders Larry Page and Sergey Brin in their office, which was really just a large room with toys and gadgets strewn all over the floor. I found Sergey in a yoga position in the corner and announced that we needed pregnancy parking, preferably sooner rather than later. He looked up at me and agreed immediately, noting that he had never thought about it before.

To this day, I’m embarrassed that I didn’t realize that pregnant women needed reserved parking until I experienced my own aching feet. As one of Google’s most senior women, didn’t I have a special responsibility to think of this? But like Sergey, it had never occurred to me. The other pregnant women must have suffered in silence, not wanting to ask for special treatment. Or maybe they lacked the confidence or seniority to demand that the problem be fixed. Having one pregnant woman at the top—even one who looked like a whale—made the difference.

數(shù)據(jù)分析咨詢請掃描二維碼

若不方便掃碼,搜微信號(hào):CDAshujufenxi

數(shù)據(jù)分析師資訊
更多

OK
客服在線
立即咨詢
客服在線
立即咨詢
') } function initGt() { var handler = function (captchaObj) { captchaObj.appendTo('#captcha'); captchaObj.onReady(function () { $("#wait").hide(); }).onSuccess(function(){ $('.getcheckcode').removeClass('dis'); $('.getcheckcode').trigger('click'); }); window.captchaObj = captchaObj; }; $('#captcha').show(); $.ajax({ url: "/login/gtstart?t=" + (new Date()).getTime(), // 加隨機(jī)數(shù)防止緩存 type: "get", dataType: "json", success: function (data) { $('#text').hide(); $('#wait').show(); // 調(diào)用 initGeetest 進(jìn)行初始化 // 參數(shù)1:配置參數(shù) // 參數(shù)2:回調(diào),回調(diào)的第一個(gè)參數(shù)驗(yàn)證碼對象,之后可以使用它調(diào)用相應(yīng)的接口 initGeetest({ // 以下 4 個(gè)配置參數(shù)為必須,不能缺少 gt: data.gt, challenge: data.challenge, offline: !data.success, // 表示用戶后臺(tái)檢測極驗(yàn)服務(wù)器是否宕機(jī) new_captcha: data.new_captcha, // 用于宕機(jī)時(shí)表示是新驗(yàn)證碼的宕機(jī) product: "float", // 產(chǎn)品形式,包括:float,popup width: "280px", https: true // 更多配置參數(shù)說明請參見:http://docs.geetest.com/install/client/web-front/ }, handler); } }); } function codeCutdown() { if(_wait == 0){ //倒計(jì)時(shí)完成 $(".getcheckcode").removeClass('dis').html("重新獲取"); }else{ $(".getcheckcode").addClass('dis').html("重新獲取("+_wait+"s)"); _wait--; setTimeout(function () { codeCutdown(); },1000); } } function inputValidate(ele,telInput) { var oInput = ele; var inputVal = oInput.val(); var oType = ele.attr('data-type'); var oEtag = $('#etag').val(); var oErr = oInput.closest('.form_box').next('.err_txt'); var empTxt = '請輸入'+oInput.attr('placeholder')+'!'; var errTxt = '請輸入正確的'+oInput.attr('placeholder')+'!'; var pattern; if(inputVal==""){ if(!telInput){ errFun(oErr,empTxt); } return false; }else { switch (oType){ case 'login_mobile': pattern = /^1[3456789]\d{9}$/; if(inputVal.length==11) { $.ajax({ url: '/login/checkmobile', type: "post", dataType: "json", data: { mobile: inputVal, etag: oEtag, page_ur: window.location.href, page_referer: document.referrer }, success: function (data) { } }); } break; case 'login_yzm': pattern = /^\d{6}$/; break; } if(oType=='login_mobile'){ } if(!!validateFun(pattern,inputVal)){ errFun(oErr,'') if(telInput){ $('.getcheckcode').removeClass('dis'); } }else { if(!telInput) { errFun(oErr, errTxt); }else { $('.getcheckcode').addClass('dis'); } return false; } } return true; } function errFun(obj,msg) { obj.html(msg); if(msg==''){ $('.login_submit').removeClass('dis'); }else { $('.login_submit').addClass('dis'); } } function validateFun(pat,val) { return pat.test(val); }