Website chia sẻ tài liệu, ebook tham khảo cho các bạn học sinh, sinh viên
Use the userdel command to delete a user account. By default, only the account is deleted, not any of the files owned by the user. By using the –r option, files in the user’s home directory and the user’s mail spool are deleted.
28 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1262 | Lượt tải: 0
Displays detailed user and system information: [sysadmin@localhost ~]$ w 10:44:03 up 50 min, 4 users, load average: 0.78, 0.44, 0.19 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty2 - 10:00 43:44 0.01s 0.01s -bash sysadmin tty1 :0 09:58 50:02 5.68s 0.16s id sysadmin pts/0 :0.0 09:59 0.00s 0.14s 0.13s who sysadmin pts/1 example.com 10:00...
28 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1229 | Lượt tải: 0
ifconfig - Displays interface configuration information. route - Displays the routing table. ping - Used to determine if a remote machine can be contacted via the network. netstat - Display network statistics. dig - Displays query results from DNS servers. ssh - Allows a user to login to a remote machine.
22 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1343 | Lượt tải: 0
The kernel ring buffer is memory used to hold messages generated by the kernel. The /var/log/dmesg file is used by some distributions to hold kernel messages that were generated during start up. Kernel messages, mixed in with other messages, are found in the /var/log/messages or /var/log/syslog file. The /etc/syslog.conf or /etc/rsyslog.conf fil...
39 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1251 | Lượt tải: 0
No video standards, requiring specific drivers for specific video cards. Two types of connections: Video Graphics Array (VGA) Digital Visual Interface (DVI) Monitor and video card must both support selected resolution. Typically X.org server determines proper resolution.
24 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1341 | Lượt tải: 0
Tests the loop condition each time while [ ! –f /tmp/foo ]; do try_to_make_foo # makes /tmp/foo on success sleep 1 # wait 1 sec done Used when the number of loops is unknown or changes each loop
18 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1395 | Lượt tải: 0
The xargs command helps complex piped command sets execute more efficiently It attempts to build the longest command line possible with as many arguments as possible It tries to prevent executing the command each time for every argument
70 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1379 | Lượt tải: 0
zip output.zip file1 file2 file3 zip foo.zip file.doc # One file zip –r foo.zip Documents # recurse unzip –l foo.zip # show contents unzip foo.zip # extract all unzip foo.zip file1 # just file 1 unzip foo.zip Documents/projectA/* # everything under Documents/projectA
10 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1337 | Lượt tải: 0
The rm command is used to delete files File deletion is permanent! Use -i to avoid accidental deletion when using globs Delete directories with the –r option or rmdir if the directory is completely empty
18 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1366 | Lượt tải: 0
The locate command is able to find any file as long as the user has permission to access the containing directory by searching a database of filenames on the system. The updatedb command is typically scheduled to update the locate database daily, but the root user can execute updatedb to immediately update the locate database.
26 trang | Chia sẻ: nguyenlam99 | Ngày: 04/01/2019 | Lượt xem: 1153 | Lượt tải: 0