{"id":9392,"date":"2023-02-11T08:27:13","date_gmt":"2023-02-10T23:27:13","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=9392"},"modified":"2023-02-13T20:01:13","modified_gmt":"2023-02-13T11:01:13","slug":"linux%e3%81%ae%e3%82%b7%e3%82%a7%e3%83%ab%e3%81%a7alias%e3%81%a7%e3%81%af%e3%81%aa%e3%81%8f%e5%85%83%e3%81%ae%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/9392","title":{"rendered":"Linux\u306e\u30b7\u30a7\u30eb\u3067alias\u3067\u306f\u306a\u304f\u5143\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\uff01\uff08alias\uff0funalias\uff0fcommand\uff09"},"content":{"rendered":"<p>Linux\u306e\u30b7\u30a7\u30eb\u3067alias\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u3067\u306f\u306a\u304f\u5143\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>alias\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>alias\u30b3\u30de\u30f3\u30c9\u3092\u5f15\u6570\u306a\u3057\u3067\u5b9f\u884c\u3059\u308b\u3068alias\u3055\u308c\u3066\u3044\u308b\u30b3\u30de\u30f3\u30c9\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u3001\u300crm\u300d\u30b3\u30de\u30f3\u30c9\u306b\u306b\u6ce8\u76ee\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,10]; title: ; notranslate\" title=\"\">\r\n$ alias\r\nalias cp='cp -i'\r\nalias egrep='egrep --color=auto'\r\nalias fgrep='fgrep --color=auto'\r\nalias grep='grep --color=auto'\r\nalias l.='ls -d .* --color=auto'\r\nalias ll='ls -l --color=auto'\r\nalias ls='ls --color=auto'\r\nalias mv='mv -i'\r\nalias rm='rm -i'\r\nalias vi='vim'\r\nalias which='(alias; declare -f) | \/usr\/bin\/which --tty-only --read-alias --read-functions --show-tilde --show-dot'\r\nalias xzegrep='xzegrep --color=auto'\r\nalias xzfgrep='xzfgrep --color=auto'\r\nalias xzgrep='xzgrep --color=auto'\r\nalias zegrep='zegrep --color=auto'\r\nalias zfgrep='zfgrep --color=auto'\r\nalias zgrep='zgrep --color=auto'\r\n<\/pre>\n<h2>alias\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\uff01<\/h2>\n<p>alias\u3055\u308c\u305frm\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u524a\u9664\u6642\u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ mkdir testdir\r\n$ touch testdir\/test.log\r\n$ rm -r testdir\r\nrm: descend into directory 'testdir'? y\r\nrm: remove regular empty file 'testdir\/test.log'? y\r\nrm: remove directory 'testdir'? y\r\n<\/pre>\n<h2>alias\u3092\u7121\u52b9\u5316\u3059\u308b\uff01\uff08unalias\uff09<\/h2>\n<p>\u30b7\u30a7\u30eb\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u56f0\u308b\u306e\u3067\u3001unalias\u30b3\u30de\u30f3\u30c9\u3067\u7121\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ alias | grep rm\r\nalias rm='rm -i'\r\n$ unalias rm\r\n$ alias | grep rm\r\n$ mkdir testdir\r\n$ touch testdir\/test.log\r\n$ rm -r testdir\r\n<\/pre>\n<h2>alias\u3092\u7121\u52b9\u5316\u3059\u308b\uff01\uff08command\uff09<\/h2>\n<p>command\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001unalias\u3057\u306a\u304f\u3066\u3082alias\u3055\u308c\u3066\u3044\u306a\u3044\u5143\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ alias | grep rm\r\nalias rm='rm -i'\r\n$ mkdir testdir\r\n$ touch testdir\/test.log\r\n$ command rm -r testdir\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b\u30b3\u30de\u30f3\u30c9\u306f\u3001alias\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002alias\u3055\u308c\u3066\u3044\u308b\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001unalias\u3059\u308b\u304bcommand\u30b3\u30de\u30f3\u30c9\u3067\u5143\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002unalias\u306f\u3001alias\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u30b3\u30de\u30f3\u30c9\u304c\u5931\u6557\u3059\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8692\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3059\u308b\uff01\uff08bash\uff09\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3059\u308b\uff01\uff08bash\uff09<\/div><div class=\"substr\">Linux\u306ebash\u3067\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3067\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/7679\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=4774186945&linkId=51dbc0ee6d79ef74ced87300db344bdb\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u306e\u30b7\u30a7\u30eb\u3067alias\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u3067\u306f\u306a\u304f\u5143\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[189],"tags":[],"class_list":["post-9392","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shell-script"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=9392"}],"version-history":[{"count":0,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/9392\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=9392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=9392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=9392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}