Linux的基本知识和基础操作
发布日期:2021-05-16 00:20:47 浏览次数:17 分类:精选文章

本文共 4279 字,大约阅读时间需要 14 分钟。

Linux���������������������������������

1. Linux���������������

Linux���������Unix������������������������������������������Linus Torvalds���1991���10���5������������������Linux���������������������������������������������������������������������������������������������������

������������������

Linux���������������������������

  • /bin������������������������cat���ls������
  • /boot������������������������������������������������������������
  • /dev������������������������������������������������������
  • /etc������������������������������
  • /home���������������������������������������������������
  • /lib���������������������������������������
  • /lost+found���������������������������������������
  • /media������������������������������������U������������������
  • /mnt������������������������������
  • /opt���������������������������������
  • /proc������������������������������������������������������������
  • /root���������������������������
  • /sbin���������������������������������������
  • /srv���������������������������������������������
  • /sys���sysfs������������������������������������������������
  • /tmp������������������������
  • /usr������������������������������������������
    • /usr/bin���������������������������������������
    • /usr/sbin���������������������������������������
    • /usr/src���������������������������
  • /var������������������������������data���������������������
  • /run������������������������������������������������������������������

2. ������������������man������������������

1. ������������

  • cd app������������app���������
  • cd ..������������������������������
  • cd /������������������������������
  • cd ~������������������������������
  • cd -������������������������������������
  • ������Tab������������������

2. ������������������

  • ls������������������������������
  • ls -a������������������������������������������������
  • ls -l���ll������������������������

3. ���������������������

  • mkdir [options] directory������������������-m���������������-p���������������
  • rmdir [options] directory���������������������

4. ������������

  • ���������������
    • cat������������������������
      • ���������-A���������������������-b���������������-E���������������������-T������tab���^I���
    • more������������������������������������������
    • less���������PgUp/PgDn������������������������
    • head���������������������������
    • tail���������������������������
  • ���������������tail -f filename������Ctrl+C���������

5. ������������

  • ���������������rm [options] file���-f���������������
  • ���������������mv [options] source destination���-f���������������
  • ���������������cp [options] source destination���-r���������������
  • ������������������
    • ���������tar -cf filename directory���
    • ������������������tar -zcf filename.tar.gz directory���
    • ���������tar -xf filename.tar���tar -zf filename.tar.gz���

6. ������������

  • grep���������������������������������
  • find���������������������������������

3. Vi���Vim���������

  • ���������������
    • ���������������normal���������Esc������
    • ���������������insert���������i, o, a, A���
    • ���������������visual���������:���
  • ���������������
    • ���������������i���������������������o���������������������a������������������
  • ���������������ESC :q ��� q! ���������������������������

4. ���������������

  • >������������������������
  • >>���������������������������
  • ���������������ls /etc/passwd > output.txt ��� ls /etc/passwd >> output.txt���

5. ���������Pipes���

  • ���������������ls -l fileName | more ���������������
  • ���������������ps -ef | grep java ���������������

6. ������������

  • ���������������������������
    • df������������������������������
    • du������������������������������
  • ������������������������
    • ���������mount -t type /dev/uuid���
    • ���������umount /dev/uuid���

7. ������������

  • ���������������useradd -d -g groupname username���
  • ���������������userdel -r username���
  • ���������������������usermod���
  • ������������������������������su username������������������sudo su���
  • ������������������
    • ���������groupadd -g group_id groupname���
    • ���������groupdel groupname���
    • ���������groupmod���

8. ������������

  • ���������������
    • ���������������-���l���
    • ���������d���
    • ���������������l���
    • ���������������b���c���
  • ���������������r���������w���������x���������
  • ���������������
    • chmod 755 filename������������������������������������������
    • chown username:groupname filename���������������������������

������������������������������������������������Linux������������������

上一篇:Method com/mysql/jdbc/ResultSet.isClosed()Z is abstract
下一篇:mysql的date类型在Java中无法正常插入

发表评论

最新留言

不错!
[***.144.177.141]2025年04月21日 02时47分59秒