Linux カテゴリーの記事一覧

LPIC Level 2 を取りました

先日 LPI 201試験 に無事合格したことにより、LPIC Level 2 と...

[続きを読む]

Linux
2009/10/28 21:40
コメント(2)

LPIC-1 102 の SQL 学習法 その3

 データを更新するには update を使います。下記の例では update で...

[続きを読む]

Linux
2009/05/05 10:00
コメント(0)

LPIC-1 102 の SQL 学習法 その2

前回で SQLite を起動しましたが、まだ何のデータもありませんので作っていき...

[続きを読む]

Linux
2009/05/05 09:59
コメント(1)

LPIC-1 102 の SQL 学習法 その1

LPIC レベル1 の内容がこの4月より新しくなりました。詳細はここです。 出題...

[続きを読む]

Linux
2009/05/05 09:58
コメント(0)

LPIC レベル1に合格

1週間ほど前に LPIC レベル1 の受験(101と102両方)をして、無事合格...

[続きを読む]

Linux
2008/09/21 18:16
コメント(0)

Examine which process using the port (lsof)

You could also use lsof command to show which process using the specific port. The command accepts multiple port numbers with i option. # lsof -i :445 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME smbd 2757 root 18u...

[続きを読む]

Linux
2008/05/09 08:09
コメント(0)

Examine which process using the port

You could show which process is using the specific port with fuser command. This is an example for the port 22/tcp. # fuser -vn tcp 22 here: 22 USER PID ACCESS COMMAND 22/tcp root 2642 f.... sshd

[続きを読む]

Linux
2008/05/08 07:51
コメント(0)

Refuse user to log in

If you just make a file /etc/nologin, user would not log in to the Linux. # cat /etc/nologin --- backup in progress --- When you delete the file, user could log in to the Linux again.

[続きを読む]

Linux
2008/03/25 08:56
コメント(0)

How to make an user list

All users are listed in a file /etc/passwd. $ cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin With a command awk, you could get the first field easily. $ awk -F':' '{ print $1 }' /etc/passwd | sort adm apache bin

[続きを読む]

Linux
2008/03/11 08:24
コメント(0)

Logout automatically

It is not recommended that you lease from your PC without logout If you would like to logout automatically, use TMOUT. This is an example of it. After 300 secondes, bash finish automatically. $ cat ~/.bashrc export TMOUT=300 If you...

[続きを読む]

Linux
2008/03/10 08:46
コメント(0)