标签: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 -aListing All Files (-a), Using the -a flag we can see both “visible” and “hidden” files and directories.$ ls -lLong Form Listing (-l)$ ls -lhHuman Readable Sizes (-h)$ ls -lhSSorting by Size (-S), default: sorting by name$ ls -ltSorting by Last Modified Time (-t)$ ls -lrReverse Sort (-r)$ ln a.txt b.txtcreating a hard link$ ln -s a.txt b.txt created a symbolic link$ cd ~/Documents$ cd ..Navigating Up (..)$ cdNavigating to the Home Directory$ mkdir foo$ mkdir -p a/b/cCreate Intermediate Directories (-p)$ mkdir -v aVerbose Output (-v)$ cp a.txt b.txtCopying a Single File, 1: source, 2: file copy$ cp a.txt b.txt fooCopying Multiple Files$ cp -v a.txt b.txta.txt -> b.txt$ cp -Rv foo barCopying Directories (-R)$ cp -f a.txt b.txtForce Overwriting of a File (-f)$ cp -i a.txt b.txtConfirm Overwriting of a File (-i)overwrite b.txt? (y/n [n])$ rm -v a.txtuses 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