lesson1 - Navigation in Linux

1. cd    etc

    cd   /ect


2. ls -l    all information (name,permission,ownship)

   ls -m     only name


3. sudo find -iname (ignore HighLow capital and small letter)


sudo find -iname *php.ini*



4.

  sudo mkdir  folder   

  sudo mkdir  folder   /etc/network/folder

(make directory)


  5. sudo rm file

   sudo rm folder -R (file exit this folder)

6.

   sudo mv file1 file2  (rename)

  sudo mv /file1  /etc/file1

7.

   sudo cp file  file.bak


8. Mounting Drives


sudo mkdir /mnt/drive

sudo fdisk  -l     (show disk information)

sudo mount /dev/sda5   /mnt/drive

cd   /mnt/drive

ls -l


sudo umount /dev/sda5


mount CD

sudo mount /dev/cdrom   /mnt/cdrom


你可能感兴趣的:(linux)