grep ユーザ名 /etc/passwd※/bin/bashってでればbashかと システム設定ファイルを知ろう〜-etc-passwd〜 - ITmedia エンタープライズ http://www.itmedia.co.jp/help/tips/linux/l0352.html
sar -u 1 100000
file -i ファイル名
IEのブラウザに、URL入力欄にjavascript:document.cookie;と入力する
passwd -u hogehoge usermod -L hogehoge
ls -lSh
cat messages | sed -e 's/Systemwalker/SYSTEMWALKER/g' > messages_new
shell:sendto(スペースはいらない)
tar tf tar_file
islisetwu -a | sort
chown -R user dir
grep -r "execJ" /tmp
grep -rn PATH_TEMP *.java
\c検索文字列
%s;/export/J;/export/7;gc
find / -name "*.js" -or -name "*.html" find / -name "*.js" -and -name "*.html"
find / -mtime -1 -ls
tar cvzfp tar xvzfpp … パーミッションを保持して固める(rootでやる必要がある)
grep -rn PATH_TEMP *.java
find / -name "hogehoge" 2>dev/null
以下のようなテキストを hoage@hogehoge[hoge]$ cat hogehoge.dat a b c d e f g h i 先頭1文字目がaとgのものだけを抽出できたりする hoge@hogehoge[hoge]$ cat hogehoge.dat | grep -E '^a|^g' a b c g h i
set lines 120 set pages 100 set term off tti off clear col col TABLESPACE_NAME format a15 col "SIZE(KB)" format a19 col "USED(KB)" format a19 col "FREE(KB)" format a19 col "USED(%)" format 990.99 select tablespace_name, to_char(nvl(total_b…
SELECT 1, 2 FROM DUAL UNION SELECT 2, 3 FROM DUAL MINUS SELECT 1, 2 FROM DUAL; ※参考 http://www.shift-the-oracle.com/sql/minus-operator.html
oracleで使用するsqlldrコマンドの基本 sqlldr hoge/hoge@HOGEHOGE control='hoge.ctl' data='hoge.csv' errors=-1 rows=1000000 readsize=10000000 bindsize=10000000 引数の説明 1.ユーザ/パスワード@DB名 2.control:controlファイルを指定 3.data:読み込…
awkはLinuxのコマンドをパワフルにする言語 独特だがテキストの編集に威力を発揮する。例えば以下のようなlsコマンドの結果を、、 hogehoge@hoge[~]$ ls -l drwxr-sr-x 17 b101 jijib 4096 Jun 27 09:29 ./ drwxr-xr-x 33 root root 4096 Nov 6 2015 ../ -rw…
DELETEを用いるよりTRUNCATE文を使ったほうが早くテーブルデータを削除できる。 ロールバックできないので注意。
find / -size +1G | xargs ls -lrth 1ギガ以上のファイルをルートディレクトリから検索
ls -1tr ./*.log | xargs tail -n 10 (パイプ)でコマンドをつなぎ合わせるといろいろな呪文ができる。
select * from hogehoge_tbl where rownum
find . -type f | wc -l フォルダのファイル数を調べたいときに