You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ããã»ã¹ã¢ã«ã¦ã³ãã£ã³ã°ç¨ã«åºãå©ç¨ã§ããç©ã¨ã㦠"Process Accounting Utility" ãããã¾ããç°å¢ã«ãã£ã¦ãããã±ã¼ã¸ã®ååãã psacct ããã㯠acct ã«ãªã£ã¦ãããã®ã§ãã $ # ã¤ã³ã¹ãã¼ã« (ubuntu) $ apt-get install acct ç¨æããã¦ããã³ãã³ã lastcomm: å®è¡ãããã³ãã³ãã®è¡¨ç¤º ac : ã¦ã¼ã¶ã®æ¥ç¶æéã®è¡¨ç¤º sa: éå»ã«å®è¡ãããã³ãã³ãã®éè¨ï¼ãã£ã«ã¿ ⻠質åã®è¦ä»¶ãæºããããã«ãä¸è¬ã¦ã¼ã¶ã¼ããã¯ãããã®ã³ãã³ããå®è¡ã§ããªãããã«ãã¦ãã ããã ã¢ã«ã¦ã³ãã£ã³ã°ãµã¼ãã¹ã®å®è¡ $ # ãµã¼ãã¹ã®éå§ $ /etc/init.d/acct start $ # ãµã¼ãã¹ã®åæ¢ $ /etc/init.d/acct stop å®éã¯ãaccton ã³ãã³ãã«ãã£ã¦ããã»ã¹ç£è¦ãå§ãããã¾ãã
psã§ä½¿ããªãã·ã§ã³ã«ã¤ãã¦ã¤ãã¤ã調ã¹ãã®ã§ãã¡ã¢ã psã®ãªãã·ã§ã³ã«ã¯ãUNIXãªãã·ã§ã³ï¼ãã¤ãã³ã§å§ã¾ããã®ï¼ã¨BSDãªãã·ã§ã³ï¼ãã¤ãã³ãä»ããªããã®ï¼ã®2ã¤ã®æµæ´¾ããããããã«å ãã¦GNU psã§ã¯ãã¤ãã³2ã¤ã§å§ã¾ããã³ã°ãªãã·ã§ã³ã使ããã ãã®ãã¼ã¸ã§ã³ã® ps ãåãä»ãããªãã·ã§ã³ã«ã¯ããã¤ãã®ç¨®é¡ãããã 1 UNIX ãªãã·ã§ã³ãã¾ã¨ãããã¨ãå¯è½ã§ãåã«ã¯ããã·ã¥ãç½®ããªããã°ãªããªãã 2 BSD ãªãã·ã§ã³ãã¾ã¨ãããã¨ãå¯è½ã§ãããã·ã¥ã使ã£ã¦ã¯ãªããªãã 3 GNU ãã³ã°ãªãã·ã§ã³ãåã«äºã¤ã®ããã·ã¥ãç½®ãã man ps ãã ããããä¸çªã¡ã¸ã£ã¼ãªã®ã¯ããps -efãï¼UNIXãªãã·ã§ã³ï¼ã¨ãps auxãï¼BSDãªãã·ã§ã³ï¼ ããããã®åºåä¾ã¯ä»¥ä¸ã®éãã $ ps -ef UID PID PPID C STIME TTY TIME CMD
direnv â unclutter your .profile direnv is an extension for your shell. It augments existing shells with a new feature that can load and unload environment variables depending on the current directory. Use cases Load 12factor apps environment variables Create per-project isolated development environments Load secrets for deployment How it works Before each prompt, direnv checks for the existence o
ãªããDMMããweb3ã«åå ¥ããã®ããSeamoon Protocolããç®æãæ°ããªã¨ã³ã¿ã¡ä½é¨ã®æªæ¥ã¨ã¯
PSGI/Plackã¢ããªã±ã¼ã·ã§ã³ã®èµ·åæ¹æ³ããããã¨æ¬çªç°å¢ã¢ã¬ã³ã¬ 便ä¹ãã¹ããæè¿ã¯ãä¸è¨å ã®ãã·ã§ã«ã¹ã¯ãªããã§ã©ããããæ¹æ³ãã§éç¨ãã¦ãããã¨ãå¤ãã§ãããã®å ´åã®one more tips. appãµã¼ãã¼ãã¨ã«ãã·ã³ã¹ããã¯ãéãå ´åããã¾ã«ãã£ã¦ããã®å ´åãã·ã³ãã¨ã« workeræ°ã調æ´ããããã©ãdeployã®é½åä¸ãµã¼ãã¼èµ·åã¹ã¯ãªããã¯åããã¤ã使ãã ãã£ã¦ãã¨ãããã¾ãã ããã§ãããããªã®ããCPUã³ã¢æ°ã«å¿ãã¦workeræ°ãè¨ç®ããæ¹æ³ã§ãã ã·ã§ã«ã¹ã¯ãªããã®å ´åã % cat app.sh #/bin/sh NCPU=`getconf _NPROCESSORS_ONLN` WORKERS=$(expr $NCPU \* 5) exec plackup -E production -s Starlet --max-workers=$WORKERS ã¨
https://bitbucket.org/winebarrel/ddbcli DynamoDBã®mysqlã³ãã³ãçãªã¯ã©ã¤ã¢ã³ããä½ãã¾ãããã»ãã¨ã¯AWS Tools Hackathonã§ãã®ãã¿ããããã¨ãã¦ããã®ã§ãããDynamoDBã®APIã«ãããå§ãããããããããã¨å®è£ ãé²ãã§ãã¾ãã¾ãã¦ãæ¬çªã©ãããããªâ¦ §å°å ¥ æåã«gemã§ã¤ã³ã¹ãã¼ã«ãã¦ãããç°å¢å¤æ°ãè¨å®ãã¾ãã shell> gem install ddbcli shell> export AWS_ACCESS_KEY_ID='...' shell> export AWS_SECRET_ACCESS_KEY='...' shell> export DDB_REGION=ap-northeast-1 shell> ddbcli # ããã³ãã表示 ddbcliã³ãã³ããå®è¡ããã¨ã以ä¸ã®ãããªããã³ããã表示
ãªãã¹ãWindowsã§ã³ãã³ããæ±ããªãããã«ãã¦ããã©ãã¡ãã£ã¨ä½¿ãå¿ è¦ãåºã¦ãã¡ãã£ãã®ã§ãåããè³ã«ãã¦ããNYAOSã¨ããã¡ããã¨å ¥ãã¦ã¿ã¾ãããã³ãã³ãããã³ããã§ææ ¢ãã¦ãä½æ¥ããã£ã¤ãã¡ãã£ã¦ããããã©ãå ¥ãã¦ããã°ä»å¾ãã¹ãã¬ã¹ãªãã³ãã³ãæä½ãåºæ¥ããããããªãã§ããã Gow Home · bmatzelle/gow Wiki · GitHub Gnu On Windowsãç¥ãã¦Gowã¨ããååã§ãã軽éãªCygwinã¨è¬³ã£ã¦ãã¦ã100åãè¶ ãã open source UNIX applicationsãWindowsã§ä½¿ããããã«ãã¦ããã¾ããã³ãã³ãããã³ããã使ãã«ãããã©ããããããdirã¨ãæã¡ãããªãã®ã§ãã¨ããããå ¥ãã¦ããã°ä¾¿å©ããªã¨æã£ã¦ã¾ãã $ whereis bash C:\Program Files (x86)\Gow\bin\bash
______Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â .~ ~. |`````````, .'. ..'''' | |Â Â Â Â | |'''|''''' .''```. .'' |_________|Â Â Â Â | | `. .' `. ..' | |Â Â Â Â `.______.' | `. .' `. ....'' | | 1.0
Our small company runs an Ubuntu Server 11.10, to which a couple of people have SSH access. The actual terminals are sometimes used, too. How can we locally log all Bash commands run, along with user and time stamp? We can assume that no-one is nefarious and actively trying to avoid the logging, but we'd still prefer the users not to have direct write-access to their log files. Simultaneous sessio
SSH ãã°ã¤ã³ãããªãã¢ã«ã¦ã³ããä½ã - Ceekz Logs ï¼åç°å ç·ï¼ çæ³¢ã®æ¥è¨ï¼ ãªãã»ã©ã¼ã ãã£ã¦ã¿ãã /bin/false # /usr/sbin/usermod -s /bin/false hoge su hoge ãã¦ãã¹ã¯ã¼ãå ¥ãã¦ãä½ãããããªãã£ãã å¥ãµã¼ããã ssh [email protected] ãããä¸ã®ããã«è¨ãããã Last login: Mon May 26 17:00:04 2008 from xxx.xxx.xxx.xxx Connection to foo.com closed. /sbin/nologin # /usr/sbin/usermod -s /sbin/nologin hoge su hoge ãã¦ãã¹ã¯ã¼ãå ¥ãããä¸ã®ããã«è¨ãããã This account is currently not available. å¥ãµã¼ããã
Mac大æµè¡ãªã®ã§Cygwinã«éè¦ãªããããããªããã©ãä¸å¹´éã®Cygwinä½é¨ãã¾ã¨ãã¦ã¿ããä»å¹´ï¼å¹´ã§ä¸çªä½¿ã£ããã¼ã«ã§æè¬ãã¦ãã Cygwinã¯Windowsç°å¢ã«ãã®ã¾ã¾Linuxã®CUIãã¼ã«ãå°å ¥ã§ããããããã³ãã³ãããã³ãããã«æãå¿ è¦ã¯èããªãã¾ããã åã¯ä»å¹´ï¼å¹´ã®ä¸çªã®åç©«ã¯Cygwinã使ã£ããã¨ã Cygwinã使ããã¨ã§ã¿ã¼ããã«ã使ãããªããããã«ãªã£ããããã¦Macã«ç§»è¡ãã¦ãã¿ã¼ããã«ããããããå°ããªãã¨æããããã«ãªãã¾ããã ã³ãã³ãããã³ãããæ¨ã¦ãã¹ãçç± ã»SSHã³ãã³ãã§ãªã¢ã¼ããµã¼ãã«ã¢ã¯ã»ã¹ãã¦ãæååãããã ã»è²ã»ãã©ã³ããããµãã¦ä½¿ãç©ã«ãªããªãã ã»ã³ãã³ããå°ãªããgrep ããããfindããã cmd.exeããã¦ã¦Minttyã使ããã Cygwinã使ãã¨ãminttyã¨ããPuttyãã¼ã¹ã®ç´ æ´ããããã¿ã¼ããã«ã
SQLShellã¯Oracle/MySQL/PostgreSQL/SQLite/Accessã®DBæä½ãè¡ãçµ±æ¬ããã³ãã¨ã³ãã SQLShellã¯Java製ã®ãªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ãã·ã¹ãã éçºããã¦ããã¨æ§ã ãªãã¼ã¿ãã¼ã¹ã«è§¦ãæ©ä¼ããããã¨ã³ã¿ã¼ãã©ã¤ãºã§ããã°Oracleãããå°ã軽éãªã·ã¹ãã ã§ããã°PostgreSQLãå人ãWebç³»ã®ã·ã¹ãã ã§ããã°MySQLãSQLiteã¨ãã£ãå ·åã ã DBæ å ± ããããã®ã·ã¹ãã ã§å°ç¨ã®ããã³ãã¨ã³ããåãã¦ãããã ããã¼ã«ãã¨ã«ç«ã¡ä¸ãæ¹ãéã£ã¦ããããæä½æ¹æ³ãç°ãªãã®ã¯è¦ããã®ãé¢åã«ãªã£ã¦ãã¾ããããããçµ±åãã¦ãããã®ãSQLShellã ã SQLShellã¯JDBCã対å¿ãã¦ãããã¼ã¿ãã¼ã¹ã«å¯¾ãã¦æ¥ç¶ããSQLãå®è¡ã§ããã½ããã¦ã§ã¢ã ããã¡ããSQLã«ã¯åDBãã¨ã«æ¹è¨ã¯ãããããã¼ã«ã®å ¥ãå£ã¨ãã¦SQLShell
æè¿ oh-my-zsh ã£ã¦ã®ãããã£ã¦èãããã¤ã³ã¹ãã¼ã«ããã ã㧠zsh ã便å©ã«ãªãã¿ãããªã®ã§ãæ©é試ãã¦ã¿ãã oh-my-zsh ã£ã¦ä½? oh-my-zsh 㯠zsh ã®è¨å®ã管çãããã¬ã¼ã ã¯ã¼ã¯ã§ãããããªè¨å®ãæå¹ã«ãã¦ç®¡çãæ´æ°ã§ããããã«ãªããããã¸ã§ã¯ã㯠GitHub ã§ç®¡çããã¦ãã http://github.com/robbyrussell/oh-my-zsh ç¹å¾´ã¨ãã¦ãããªãã¨ãæãããã¦ãã 40以ä¸ã®ããã³ãã ãã¼ã 便å©ãªãã©ã°ã¤ã³ èªåã¢ãããã¼ãæ©è½ ã³ãã¥ããã£ä¸»ä½ã®éçº(ã¿ããªã®è¨å®ãåãè¾¼ãã§ãã) ã¤ã³ã¹ãã¼ã«ããã¨ãã ããããããªãã¨ãè¨å®ãããã ããã³ããããã£ããã(?)ãªã alias ããã£ã±ãè¨å®ããã ãã使ã option ãè¨å®ããã ã¤ã³ã¹ãã¼ã«ç´å¾ã¯ãããªæãã Git ã®ãã©ã³ãåã表示ãããã å¿ è¦
æ¦è¦ Emacs ãå©ç¨ãã¦ããã¨å ¨é¨ Emacs ã§ãããããªãã®ã¯ Emacs 使ãã¨ãã¦å½ç¶ã ã¨æãã¾ãã Shell ã ã£ã¦ Terminal ãªã©å©ç¨ãã Emacs ä¸ã§åä½ãããããªããã¨ã§ãããã ãã®ææ¸ã§ã¯ Emacs ä¸ã§ Shell ãå¿«é©ã«å©ç¨ããããã®è¨å®ãè¨è¿°ãã¦ããã¾ãã ç®æ¬¡ æ¦è¦ æ¤è¨¼ç°å¢ Emacs ã§ã® Shell Mode ã«é¢ããåºç¤ç¥è shell term (ansi-term) eshell ã©ã®ã¢ã¼ããå©ç¨ããã å©ç¨ãã Shell ã«ã¤ã㦠Windows ã§ã® Shell ã®æºå Mac OS X ã§ã® Shell ã®æºå Emacs å´ã®è¨å® PATH ã®è¨å® å©ç¨ãã Shell ã®è¨å® æåã³ã¼ãã®è¨å® ã·ã¹ãã ã® terminfo ãå©ç¨ããªãè¨å® ã¨ã¹ã±ã¼ãã綺éºã«è¡¨ç¤ºãã term å¼ã³åºããã¼ã®å²ãå½ã¦ Shell å´
ã¨ã¯ã¹ããã¼ã©ã§ä½æ¥ããã®ãéå¹ççã«æãã¦ããã®ã§ãã³ãã³ãã©ã¤ã³ã·ã§ã«ã®å°å ¥ãæ¤è¨ä¸ãå°æ¥ Mac ã Linux ã使ããããããªãã®ã§ãWindows ã§ãã使ããªããã®ã¯é¤å¤ãPowerShell ã¨ããã§ã調ã¹ã¦ã¿ã¦è¯ãããã ã£ãã®ããzsh 㨠bash ã®ï¼ã¤ã Windows ã§ãããã使ãæ¹æ³ã調ã¹ã¦ã¿ãã¨ãã»ã¨ãã©ã Cygwin ã使ãæ¹æ³ãã§ããã·ã§ã«ã使ãããã ããªã®ã§ãCygwin ã¯å ¥ããããªããWindows 移æ¤çãç¡ããæ¢ãã¦ã¿ãã¨ãããSourceForge ã§çºè¦ï¼ WinZsh zsh ã® Windows 移æ¤çãRuby ã® irb ãåããªãã£ãããã¾ã ã¾ã ãªé¨åããã http://sourceforge.net/projects/zsh-nt/ WinBash bash ã® Windows 移æ¤çãWinZsh ãããå®å®ãã¦ãã(ãããª
ãã®ããã¥ã¡ã³ãã®å 容ã¯ã以ä¸ã®éãã§ãã ã¤ã³ã¹ãã¼ã« åèãµã¤ã 使ãæ¹ Unixã¦ã¼ã¶ãå©ç¨ããç¥å¨ã®ï¼ã¤ GNU Screen ãã¿ã§ãã screenie ã¯ã GNU Screenã®è¤æ°ã®ã¹ã¯ãªã¼ã³ã»ãã·ã§ã³ãç°¡åã«ç®¡çã§ãã¾ãã screenieã使ããã¨ã§ãscreenã対話çã«ä½æããããã¢ã¿ããããããããã¨ãã§ãã¾ãã ä¸è¨ã®ã³ãã³ããæããã«ãã»ã¨ãã©é¸æããã ãã§æä½å¯è½ã§ãã screen -ls screen -S foo screen -rd foo ã¤ã³ã¹ãã¼ã« cd /usr/ports/sysutils/screenie/ sudo make install clean portinstallã³ãã³ãã§ã¤ã³ã¹ãã¼ã«ããå ´å sudo portinstall /usr/ports/sysutils/screenie/ åèãµã¤ã ã¢ã¯ã»ã¹ã§ããªããããã
ä»åãååã«å¼ãç¶ãããâ ã¿ã¼ããã«ãã®ãã®ãã«é¢ããã¬ã·ãããå±ããã¾ãã Emacsããã¿ã¼ããã«ãå¼ã³åºã 第32åã»ç¬¬33åã§ç´¹ä»ããããã«ãgeditãKateã¨ãã£ãããã¹ãã¨ãã£ã¿ã«ã¯ã¿ã¼ããã«ãçµã¿è¾¼ãã ç¶æ ã§å©ç¨ãããã¨ãã§ãã¾ãã ããã¹ãã¨ãã£ã¿ãé »ç¹ã«å©ç¨ããå ´åã¯ããããå©ç¨ããæ¹ã便å©ã§ãããã Emacsã§ãgeditãKateã¨åæ§ã«ãçµã¿è¾¼ã¿ã¿ã¼ããã«ãå©ç¨ãããã¨ãã§ãã¾ããEmacsã§ã¿ã¼ããã«ãå©ç¨ããå ´åã¯è¤æ°ã®æ¹æ³ããããããããç¹æ§ãç°ãªãã¾ãã Emacs::shell Emacsã®ããæ¨æºçãªçµã¿è¾¼ã¿ã¿ã¼ããã«ã¯ãM-x shellã§èµ·åãããã¨ãã§ãã¾ãï¼å³1â ï¼â ã å³1ãM-x shell ããããä¸è¨ã®ã¹ã¯ãªã¼ã³ã·ã§ããã§ãé¨åçã«æåãåãã¦ããéãããã®ã¢ã¼ãã¯ã¿ã¼ããã«ã¨ãã¦ã®æ©è½ã«å¶éãããã¾ãã端çã«ã¯ï¼»tabï¼½ã«ããè£å®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}