linux的简单面试题,收集的一些简单的UNIX/Linux面试题
UNIX问题:
1. Q. How do you find out the processes that are currently running or a particular user?
A. ps -au Myname (-u by effective user ID (supports names)) (a - all users)
2. Q. How do you kill a process?
A. kill -9 8 (process_id 8) or kill -9 %7 (job number 7)
kill -9 -1 (Kill all processes you can kill.)
killall - kill processes by name most (useful - killall java)
3. Q. What would you use to view contents of a large error log file?
A. tail -10 file_name ( last 10 rows)
4.Q. How do you list contents of a directory including all of its
subdirectories, providing full details and sorted by modification time?
A. ls -lac
-a all entries
-c by time
5.Q. How do you create a symbolic link to a file (give some reasons of doing so)?
A. ln /../file1 Link_name
Hard Link, soft Link?
6.Q. How do you check the sizes of all users锟?home directories (one command)?
A. du -s
df
7.Q. How do you check for processes started by user 'pat'?
A. ps -fu pat (-f -full_format u -user_name )
8.Q. How do you start a job on background?
A. bg %4 (job 4)
9. Q. How to remove directory with files?
A. rm -rf directory_name
10. Q. How can you see all mounted drives?
A. mount -l
11. Q. How can you find a path to the file in the system?
A. locate file_name (locate - list files in databases that match a pattern)
12. Q. What Linux HotKeys do you know?
A. Ctrl-Alt-F1 Exit to command prompt
Ctrl-Alt-F7 or F8 Takes you back to KDE desktop from command prompt
Crtl-Alt-Backspace Restart XWindows
Ctrl-Alt-D Show desktop
13. Q. If you would like to run two commands in sequence what operators you can use?
A. ; or && the difference is:
if you separate commands with ; second command will be run automatically.
if you separate commands with && second command will be run only in the case
the first was run successfully.
14. Question: How to switch to a previously used directory?
Answer: cd -
linux的简单面试题,收集的一些简单的UNIX/Linux面试题相关推荐
- linux pipe函数 重定向,I/O重定向和管道——《Unix/Linux编程实践教程》读书笔记(第10章)...
1.I/O重定向的概念与原因 及 标准输入.输出的标准错误的定义 所以的Unix I/O重定向都基于标准数据流的原理.三个数据了分别如下: 1)标准输入--需要处理的数据流 2)标准输出--结果数据流 ...
- 为什么VDI(桌面虚拟化)对于硬核UNIX/Linux工程应用程序是有意义的?
Why VDI Makes Sense for Hard-Core UNIX and Linux Engineering Applications 为什么VDI(桌面虚拟化)对于硬核UNIX/Lin ...
- Unix/Linux操作系统分析实验四 设备驱动: Linux系统下的字符设备驱动程序编程
Unix/Linux操作系统分析实验一 进程控制与进程互斥 Unix/Linux操作系统分析实验二 内存分配与回收:Linux系统下利用链表实现动态内存分配 Unix/Linux操作系统分析实验三 文 ...
- Unix/Linux操作系统分析实验二 内存分配与回收:Linux系统下利用链表实现动态内存分配
Unix/Linux操作系统分析实验一 进程控制与进程互斥 Unix/Linux操作系统分析实验三 文件操作算法: 实现在/proc目录下添加文件 Unix/Linux操作系统分析实验四 设备驱动: ...
- Android面试题收集
Android是一种基于Linux的自由及开放源码的操作系统.主要使用于移动设备,如智能手机和平板电脑.由Google公司和开放手机联盟领导及开发.这里会不断收集和更新Android基础相关的面试题, ...
- 程序员笔试题收集汇总(三)
相关文章: 程序员笔试题收集汇总(一) http://blog.csdn.net/youyou1543724847/article/details/52383530 程序员笔试题收集汇总(二) htt ...
- linux面试题_全网最新、最全Linux面试题(2020版)!
作者:ThinkWonhttp://blog.csdn.net/thinkwon/article/details/104588679 导读:本文整理了最新的Linux面试题,近3万字,约100道题,分 ...
- 原 iOS面试题收集
原 iOS面试题收集 发表于2年前(2013-07-22 13:47) 阅读(369) | 评论(0) 4人收藏此文章, 我要收藏 赞0 听云性能监测产品App.Server.CDN免费试用,绑定 ...
- 10道C++输出易错笔试题收集
10道C++输出易错笔试题收集 下面这些题目都是我之前准备笔试面试过程中积累的,大部分都是知名公司的笔试题,C++基础薄弱的很容易栽进去.我从中选了10道简单的题,C++初学者可以进来挑战下,C++大 ...
最新文章
- uninque()用法
- 2018人工智能前沿报告:深度学习的应用和价值
- java字符串转json取集合_Java中Json字符串直接转换为对象的方法(包括多层List集合)...
- c++ *.h和*.cpp在编译中的作用
- jupyter notebook的链接密码 token查询 以及 pycharm 如何使用 jupyter notebook
- android发送点击事件,Android 模拟发送事件
- centos 6.5装mysql 5.7,centos 6.5装mysql5.7
- Vmware16一打开虚拟机就蓝屏
- latex 学习资料
- 网络服务器虚拟化技术,网络虚拟化技术
- 基于跨模态预测的多模态情感分类
- 正则表达式-入门资料
- MySQL数据库安装教程
- C3P0连接池配置和实现详解
- 进销存系统的通用模型
- 云服务优缺点_云服务是什么,它有哪些优缺点?
- 看了《麦田里的守望者》
- python实现淘宝客服自动回复语_Python+Socket实现基于TCP协议的客户与服务端中文自动回复聊天功能示例...
- 使用Linux搭建IPV6路由器
- Android Studio 微信分享功能(包括可以分享到朋友圈,分享到朋友)