首页 > 系统服务 > 详细

Linux useful commands

时间:2019-05-18 16:07:55      阅读:135      评论:0      收藏:0      [点我收藏+]

cat misc.

cat xxx | more

cat xxx | less

cat > xxx , create a file xxx

cat -n xxx | more with line number information.

cat aaa.txt >> bbb.txt, the aaa.txt will be appened to bbb.txt

 

tail a file with auto update when file change

tail -f /var/log/syslog 

 

makefile with detail commands infomation 

make V = 1 , which will show the detailed commands 

 

To switch root user

sudo su switch to root user

using exit to go back to login user

 

To check which driver is mounting for CD-ROM

just typeing mount in terminate

/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda1 on /boot/efi type vfat (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=zjb)
/dev/sr0 on /media/zjb/UDF Volume type udf (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8,umask=0077,uhelper=udisks2)

 

To create ISO for CD-ROM

dd if=source of=destination

example, dd if=/dev/sr0 of=windows.iso

 

To install .deb file

sudo dpkg -i /path/to/deb/file

sudo apt install ./name.deb 

 

source bash_file

source is a Unix command that evaluates the file following the command, as a list of commands, executed in the current context

 

lz4c not found

apt-get install liblz4-tool

mkfs.ubifs not found

apt-get install mtd-utils

 

Installing the ncurses library which may used in make menuconfig

libncurses5-dev : Developer’s libraries for ncurses
libncursesw5-dev : Developer’s libraries for ncursesw

Linux useful commands

原文:https://www.cnblogs.com/zjbfvfv/p/10350348.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!