Linux basic Directive 1

Source: Internet
Author: User

LS–L/BIN/*SH displays all files with the end of SH in the bin directory.

Shell type:/bin/bash or/bin/sh,/bin/csh,/bin/ksh three kinds. /bin/bash is the default shell

command to view the currently used shell:env the command can display the environment variables of the current operating system.

Modify the Shell:chsh-s new shell.

The TAB key can be used to complete the function of command completion.

Linux network environment Configuration, a total of 3 (root identity can be configured)

Method One: Enter the command setup, go in to configure the network

After the match, run the/etc/rc.d/init.d/network Restart command we have just the order to take effect)

Method two ifconfig eth0 network IP number (eth0 indicates which NIC to configure)

This set-up network will take effect immediately, but temporary, reboot will disappear

ifconfig eth0 Network IP number: Subnet mask setting

Method Three: ①vi/etc/sysconfig/network-scripts/ifcfg-etho

Directly into the file modification

② run/etc/rc.d/init.d/network restaet command will take effect.

After entering the file

Device=etho (This is the Network name card/device number)

Divboot=yes (the Machine Start network card is effective, if set to no equivalent to disable the network card)

Bootproto=static (static indicates that you specified modify IP,DHCP when the NIC starts, the system will automatically give you)

fpaddr= (assigning IP to prevent duplication of the same LAN IP)

Installation of Samba servers

1. See if the system is equipped with Samba Rpm–q Samba

2. Uninstall the ①rpm–e Samba routine uninstall if available

②rpm–e–nodeps Samba forcibly uninstalls, can forcibly interrupt some kind of dependency connection

3. Attach your own installation files to Linux Mount/mnt/cdrom

4. Copy the file that starts with Sam to home and prepare to install Cp/mnt/cdrom/samba*/home

5. Install RPM–IVH common; RPM–IVH client 3 files to install progressively

6. Create a user and set a password to log in to Samba's password

Useradd passwd

cat/etc/passwd/mksmbpasswd.sh>/etc/samba/smbpasswd

SMBPASSWD User Name Input password

7. Start Samba service start service stop stop

Service Restart restart Windows Access Run//linux IP

Configure network Windows and Linux in a network IP interconnect

Ifconig Etho down prohibit use Etho ifconig etho up Open Etho

You can access the shared files in Linux by entering the \\IP address in Windows


This article is from the "11601463" blog, please be sure to keep this source http://11611463.blog.51cto.com/11601463/1864969

Linux basic Directive 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.