Tags: backup pwd sel boot ASCLL directory name span directory operation condCD Switch DirectoryCD Catalog
[[Email protected] ~]# CD/
[[email protected]/]# ls
Application bin class Dev home lib64 media nfsbackup opt python sbin server sys usr
Backup boot data etc lib Lost+found mnt oldboy proc root selinux srv tmp var
[Email protected]/]# cd/tmp
[[email protected] tmp]# ls
Yum_save_tx-2017-10-12-23-03cskn4p.yumtx
used in Linux pwd command to view the full path of the current working directory. Simply put, you will have a current working directory every time you operate in a terminal. When unsure of the current location, PWD is used to determine the exact location of the current record within the file system. 1 . Command format:???? Pwd? [ Options]2 . Command function:??
Linux in use pwdcommand to view the full path of the current working directory. Simply put, you will have a current working directory every time you operate in a terminal. when you are unsure of your current location, you will use the pwd to determine the exact location of the current directory within the file system. 1 . command format: pwd [ options ]2 . Command function: View the full path to the curr
Time limit per test
3 secondsMemory limit per test
256 megabytesInput
Standard InputOutput
Standard output
Vasya is writing an operating system shell, and it shoshould have commands for working with directories. To begin with, he decided to go with just two Commands: Cd (ChangeThe current directory) and PWD (display the current directory ).
Directories In Vasya's operating system form a traditional hierarchical tree structure. There is a single root d
From: http://blog.sina.com.cn/s/blog_5b9734c501011l4b.html
$ tar zxf readline-5.2.tar.gz$ CD READLINE-5.2/$./configure--host=arm-linux--prefix=$ (pwd)/_install$ make$ make Install
The meaning of/configure--host=arm-linux--prefix=$ (pwd)/_install
$./configure The following two are the parameters that are given when you run configure
--host=arm-linux Operating Environment (cross-compiled into arm)
--pr
Ladies and gentlemen, crossing, the last time we were talking about DIY date command example, this time we say the example is:DIY pwd command . Gossip Hugh, words return to the positive. Let's talk C chestnuts together!Crossing, when you switch directories frequently, there is a feeling that you do not know which directory you are in, and you need to use the PWD command to show which directory you are curre
1, the CD command is a command to enter a directoryUsage Example: cd/etc//Enter the ETC Directory CD ~//return to the root directory CD. Return to Parent DirectoryNote: the current position in etc under the sub-directory to enter etc can not add "/" such as Cd/etc cd/x11This will not enter the/ETC/X11 directory.2, ls command view all elements under the current directory ll command will be displayed in the list3. PWD command to view the current locatio
Directory Management ls CD pwd mkdir rmdir tree################################################################LS: Display directoryCD: Switch directoriesPWD: Show current directorymkdir: Creating a DirectoryRMDIR: Deleting a directoryTree: Show Directory tree################################################################1>, ls:list directory contents list Contents-L: Long formatFile type-: Universal DocumentsD: Catalog fileB: Block devices (blocks)C
The full path to use the PWD command to view the current working directory in Linux. Simply put, you will have a current working directory every time you operate in a terminal. 1. pwd [ Options] 2. Command function:View the full path to the current working directory3. Common parameters:Normally without any parametersIf the directory is a link :Format:pwd-p shows the actual path, not thelinkpath.
One, Platform ModulePlatform runs in the standard library, and it has a lot of functions that run our access to many system information.>>> Import Platform>>> Platform.uname ()(' Linux ', ' gitlab.test.com ', ' 3.10.0-327.el7.x86_64 ', ' #1 SMP Thu Nov 22:10:57 UTC ', ' x86_64 ', ' x86_64 ')>>> Platform.system ()' Linux '>>> Platform.release ()' 3.10.0-327.el7.x86_64 '>>> platform.linux_distribution ()(' CentOS Linux ', ' 7.2.1511 ', ' Core ')Extra:The difference between importing Modules,import
The pwd module is simple and used on linux/unix platforms to obtain information about the/etc/passwd file. It can be used as an interface to obtain user information. Next let's take a look at the specific usage details.Summary
The pwd module has three functions: getpwuid, getpwnam, and getpwall. The three functions, combined with the related attributes of the list table, can obtain various types of user i
(r-x), and the other user's permissions are 3 (-WX)PWD: View current directoryCat: View the contents of a fileEcho: The string behind the screen output echo. echo ABCD >/root/x2 redirects the ABCD output to the/root/x2 file (meaning: Build/root/x2 file content for ABCD). > is the output redirection character.MV: renaming or moving.CP: Copy files.mkdir: Build directory. Current directory such as: Mkdir-p A/B/C/D the subdirectory of the serial.RM: Dele
Linux uses the PWD command to view the full path of the current working directory. Simply put, every time you operate on a terminal, you have a current working directory.
When you are unsure of the current position, you use PWD to determine the exact location of the current directory within the file system.
1. Command format:
PWD [Options]
2. Command function
Start Linx Shell's first article todayToday describes how PWD and CDs are used.The pwd means "Print working Directory", which displays the current location.PWD also has other available parameters-L (uppercase),-p (uppercase)-L is the same as the PWD showing the current user's location-p Display the user's current physical location and
Common Linux commands (III)-pwd
In Linux, run the pwd command to view the complete path of the "current working directory. To put it simply, whenever you operate on a terminal, you will have a current working directory. If you are not sure about the current location, pwd is used to determine the exact location of the current directory in the file system.
1.Comm
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.