Linux operation and maintenance engineers face questions Daquan 02_ document management

Disclaimer: This article is a blogger original article, reproduced, please declare the source! https://blog.csdn.net/weixin_42758707/article/details/90549473

The answer to the next line, saw the mouse to select
Like this
like this
Here Insert Picture DescriptionHere Insert Picture Description

Linux interview questions

1, the current of Contents file1 command to move files in the two dic of Contents of Contents Is
mv file1 ... / ... / dic

2, create a soft link /usr/lib64/libc.so ⼀ as /lib64/libc.so, the command is ().
ln -s /lib64/libc.so /usr/lib64/libc.so

When 3, linux operating systems Using the mkdir command to create a new of Contents, create their ⽗ of Contents If ⽗ of Contents does not exist, Using parameter is ().
-p

4, command linux operating systems to create flexible connection is ().
ln -s

5, indicate the current of Contents command is ().
pwd

6, in order to build attention immediately under current of Contents dic of Contents is ().
mkdir dic

7, when copying files on a linux system, the requirements will not change the owner and file permissions files after an operation performed? How to make the operating system support long-term ⽀?

The cp -p (alias cp = "cp -pi") write / etc / profile or ~ / .bashrc

8, in the linux system, when the user Use of the root, the current of Contents of / usr / local, key cd ~ START command, the current is of Contents ().
/ root

9, linux files File System Using each () is identified.
inode

10, ⼀ one of ext3 File system, when Using the touch test.file command creates the file causes a new error, an error message is displayed to mention the disk is full, but recorded using df -
H command to view disk zoomed hour display, Using only 60% of disk space, why is there such a situation? And explains how to check the reasons for confirmation?
Using no free inode number of leads.
df -i: partition where the file inode number Use whether to make the temporary files can not be deleted Use of the release inode

11, when installing linux system partition on the hard disk, the file must have two partition type :(). As the system cache partition is ().
Root and swap partitions, swap

12, rename name ⼀ months of Contents of Use () command.
rename or mv

13, Use ls command, only the monitor / tmp of Contents information to apply it is a parameter ().
-d

14, switching command linux Use households is ().
su or su -

15, 32 is largest operating system can use the () G memory.
4

16, in linux, the link is divided into ().
Hard and Soft Links

17, nginx process is not closed, the corresponding date Chi Using rm files after deletion, disk space ⽆ law is released, stood in the file system on the angle, to explain this phenomenon?
The file is opened (there are Use process), then the process will still be able to read the files, the disk space occupied ⼀ straight Use

18, description /etc/rc.local and / var / log / message contents of two files is doing what?
rc.local: preservation is CUSTOM boot boot program;
log / saved message is the system date log information.

19, the / home / test of Contents ct at the beginning of the file to replace all of the test pieces of good character?
rename test good / home / test / ct *

20, how to view the file linux zoomed lower, and are displayed GB, MB, KB?
"Du -h", "du -m ", "du -k"

21 to see how linux hard on usage, respectively Use MB, KB monitor?
df -m, df -k

22, linux how to view disk space?
df -h

23, the difference between a symbolic link and a hard link?
Symbol (or soft) links 1, ⼀ a symbolic link to another file member 2, ⼀ symbols linked content it primers Name Use files 3, may of Contents into
⾏ 4, across the partition 5, point is the path of another file member; 6, which is a zoomed ⼩ path to the length of the string; 7, does not increase or decrease the destination time files marked
primers Using the inode count;
hard links 1, creating additional hard link increases the entries in the file 2 Using primers corresponding to the system files on the same ⼀ ⼀ 3 physical files, each of Contents Using the same primer
when the inode number 4, number of links created when increments of 5, delete files: rm counting down link command to the file exists, ⾄ ⼀ few links when the link number is zero
when the files are deleted 6, can not cross the drive or partition

24、一块新硬盘插入linux主机后,怎样才能正常使用?简要说明主要操作步骤?
答:新硬盘格式化分区制作⽂件系统后挂载即可使⽤;
第⼀步:格式化分区⽤fdisk命令进⾏;
第⼆步:制作⽂件系统⽤mkfs.xfs命令进⾏;
第三步:挂载⽤mount命令进⾏;
第四步:编辑配置⽂件/etc/fstab 实现⾃动挂载;

25、用户stud1,用户目录为/home/stud1,当前目录为/home,进入目录/home/stud1/test
命令是( )。
a. cd test
b. cd /stud1/test
c. cd stud1/test
d. cd home
C

26、用( )命令可列出目录的内容。
a.ls
b.ps
c.rm
d.del
A

27、用( )命令不可以用来显示档案的内容。
a.ps
b.vi
c.vim
d.cat
A

28、了解当前目录下还有多大空间( )。
a.df
b.du /
c.du .
d.df .
D

29, accounting for a File Using too much disk space, no space was found after the release rm deleted, what is the reason? How to solve?
The reason is that the file is being accounted for Use with a piece of software.
[centos7 ~] #> / boot / bigfile free space
[centos7 ~] #rm -f / boot / bigfile delete files

Guess you like

Origin blog.csdn.net/weixin_42758707/article/details/90549473