标签:directory inter multi asi hid term alt linux ls -l
You can also open the terminal by pressing CTRL + ALT + T on your keyboard.
$ ls
$ ls /usr/local/
Listing a Different Directory$ ls -a
Listing All Files (-a), Using the -a flag we can see both “visible” and “hidden” files and directories.$ ls -l
Long Form Listing (-l)$ ls -lh
Human Readable Sizes (-h)$ ls -lhS
Sorting by Size (-S), default: sorting by name$ ls -lt
Sorting by Last Modified Time (-t)$ ls -lr
Reverse Sort (-r)$ ln a.txt b.txt
creating a hard link$ ln -s a.txt b.txt
created a symbolic link$ cd ~/Documents
$ cd ..
Navigating Up (..)$ cd
Navigating to the Home Directory$ mkdir foo
$ mkdir -p a/b/c
Create Intermediate Directories (-p)$ mkdir -v a
Verbose Output (-v)$ cp a.txt b.txt
Copying a Single File, 1: source, 2: file copy$ cp a.txt b.txt foo
Copying Multiple Files$ cp -v a.txt b.txt
a.txt -> b.txt$ cp -Rv foo bar
Copying Directories (-R)$ cp -f a.txt b.txt
Force Overwriting of a File (-f)$ cp -i a.txt b.txt
Confirm Overwriting of a File (-i)overwrite b.txt? (y/n [n])
$ rm -v a.txt
uses the -v flag to list files that were deleted using the rm command.$ mv -v a.txt b.txt
$ cp a.txt b.txt
$ rm a.txt
详见:Conquering the Command Line Chapter 1
标签:directory inter multi asi hid term alt linux ls -l
原文地址:https://www.cnblogs.com/lonelyWMW/p/11613836.html