LPIC Level 2 を取りました先日 LPI 201試験 に無事合格したことにより、LPIC Level 2 と...
[続きを読む]
LPIC-1 102 の SQL 学習法 その3データを更新するには update を使います。下記の例では update で...
[続きを読む]
LPIC-1 102 の SQL 学習法 その2前回で SQLite を起動しましたが、まだ何のデータもありませんので作っていき...
[続きを読む]
LPIC-1 102 の SQL 学習法 その1LPIC レベル1 の内容がこの4月より新しくなりました。詳細はここです。 出題...
[続きを読む]
LPIC レベル1に合格1週間ほど前に LPIC レベル1 の受験(101と102両方)をして、無事合格...
[続きを読む]
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...
[続きを読む]
Examine which process using the portYou 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
[続きを読む]
Refuse user to log inIf 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.
[続きを読む]
How to make an user listAll 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
[続きを読む]
Logout automaticallyIt 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...
[続きを読む]