zoukankan      html  css  js  c++  java
  • Linux学习笔记

    sudo adduser xxx 这样的命令会在home目录下添加一个帐号
    sudo useradd xxx 仅仅是添加用户, 不会在home目录添加帐号


    sohu yuan:
    deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
    deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
    deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse

    winsdows打开某个服务:控制面板-程序-。。。       cmd里services.msc

    给用户添加sudo权限:sudo visudo     添加user ALL=(ALL)ALL

    配置网络信息:/etc/network/interfaces

    auto eth0                  #设置自动启动eth0接口
    iface eth0 inet static     #配置静态IP
    address 192.168.11.88      #IP地址
    netmask 255.255.255.0      #子网掩码
    gateway 192.168.11.1        #默认网关

    重启网络: /etc/init.d/networking restart

    DNS

    /etc/resolv.conf

     apt-get:sudo apt-get install package 安装包    sudo apt-get remove package 删除包   sudo apt-get update  更新源   sudo apt-get upgrade 更新已安装的包  apt-get source package  下载该包的源代码

     source:

    source FileName
    作用:在当前bash环境下读取并执行FileName中的命令。
    注:该命令通常用命令“.”来替代。
    如:source .bash_rc 与 . .bash_rc 是等效的。

     路由表设置:

    基础:http://blog.csdn.net/hnmsky/article/details/8657989

    如何添加:http://www.thegeekstuff.com/2012/04/route-examples/

  • 相关阅读:
    LeetCode Best Time to Buy and Sell Stock
    LeetCode Scramble String
    LeetCode Search in Rotated Sorted Array II
    LeetCode Gas Station
    LeetCode Insertion Sort List
    LeetCode Maximal Rectangle
    Oracle procedure
    浏览器下载代码
    Shell check IP
    KVM- 存储池配置
  • 原文地址:https://www.cnblogs.com/kydnn/p/4960660.html
Copyright © 2011-2022 走看看