Last update at :2024-05-23,Edit by888u
In the previous article "Linux Terminal Beginner's Guide vps Getting Started Tutorial", we shared simple Linux terminal knowledge with you. Today we will share more other Linux knowledge. In this article, we share with you how to check what files your VPS has.
To list files in the terminal, you can use the ls command to list all files in the current directory. The pwd command can tell you the current directory:
$ pwd
/root
$ ls
example.txt p>
Downloads
Music
Pictures
Videos
You can pass --all (abbreviated as -a) option to see hidden files:
ls -a
. .bash_history .bash_profile .cache .cshrc .ssh v2ray
.. .bash_logout .bashrc .config .pip .tcshrc .wget-hsts
As you can see, the first two items listed are dots. A single dot (.) is actually a meta-location, representing the folder you are currently in. Two dots (..) indicate the parent directory you can return to from your current location. That is, the current directory is in another folder. You can use these meta-locations to create shortcuts for yourself as you move between directories on your computer, or to add uniqueness to your paths.
How to distinguish files or folders
You may notice that files and folders are difficult to distinguish. Some Linux distributions have some nice color settings, such as all folders are blue, files are white, binaries are pink or green, etc. If you don't see these colors, you can try ls --color. If you are color blind or don't use a color monitor, you can use the --classify option instead:
ls --classify
android-info.txt
cheat/
You will find that a slash (/) is added to the end of the folder to indicate that they are a certain level of directories in the file system. Binary files, such as compressed files and executable programs, are marked with an asterisk (*).
Of course, there are far more commands to view files, but as a beginner, this is enough. More knowledge , will be shared later.
Recommended site search: US server rental, Japanese proxy server ip free, US server, mainland China free ip address, Hong Kong virtual host, free domain name, proxy ip purchase Website, Hong Kong vps host, foreign vps server rental, local ip query,
发表评论