Linux command of the three operating systems 1.Windows 2.Linux Ubuntu RedHat Centos ... 3.Unix MacOS virtual machine software VMware Workstation installation teaching environment 1. Install the virtual machine software VMware Workstation 2. unpack Python teaching environment 2019xx 3. Open the installation VMware virtual machine and select open 4. locate the unzipped Python teaching environment of choice ubuntu64 bit 5. run the terminal: run Linux command interface root / Linux command command name [options] parameters 1.pwd view the current path / home / tarena root home tarena ~ represents the user's home directory in the Linux path ~ / home / tarena rest 14: 52 ~ 15: 05 2.ls display the contents of the current directory which contains white papers on behalf of ordinary blue represents the directory / folder red for compressed files green represents executable ls -l display (long) long format shortcut Ctrl + l in the terminal cleared (the current row is moved to the top of the screen) Ctrl + plus terminal amplifying Font Ctrl + Minus narrow terminal font ls -a show all (all) that contains a hidden file or directory / folder in Linux file or directory is hidden. Beginning with no special emphasis on time regardless of the order of command options can be used simultaneously ls -la ls -al content under ls path view the path 3.cd Change directory cd path path absolute path / path starting opposite path does not begin with / to make a starting point for a directory / home / tarena current directory have a desktop in the current directory directory represented by the relative path table ./ current directory is a directory table on the desktop is represented by the relative path .. . the current directory .. indicates the parent directory of the current directory cd ../ Desktop practice to switch from the desktop and from the template to the desktop switch to the template switching to the directory / tmp view the current directory to view the current contents have to switch to the / etc directory view the current contents of the directory switch to the user's home directory Break 15: 48 ~ 16:05 shortcut: a terminal code completion the Tab cd ~ to switch to the user's home directory command corresponds ll ls -la cd - returns to the last jump directory cd default switch back to the user's home directory 4.mkdir Create a directory / folder mkdir directory name mkdir Contents 1 Table of Contents 2 ... create three directories under aid1908 were called ABC cd aid1908 mkdir ABC new directory a01 in aid1908 / A, the a01 in New A11 mkdir -p a01 / A11 -p option to recursively create directories (create a directory with a hierarchical relationship) create a directory in my aid1908 create a directory to learn programming objects in my catalog to see all the content in the directory I switched to the user's home directory 5.touch (change a file's last modified date on the file does not exist if) create a file created in Linux files need to manually add a file type to create files in aid1908 / B b2.txt b3.txt in b1.txt Touch b1 .txt b2.txt b3.txt jobs created in aid1908 tiger lion monkey under three directories created in the directory lion Simba Nala directory is created in the directory file hello.py game.py Simba view the details of the file to switch to view the current directory mokey path switch to your home directory
of the study notes
linux study notes 1
Guess you like
Origin www.cnblogs.com/xiaoliangliu86/p/11404139.html
Ranking