安裝中文字典英文字典辭典工具!
安裝中文字典英文字典辭典工具!
|
- How to rename a file in Terminal? - Ask Ubuntu
A simple way to rename files and folders is with the mv command (shortened from “move”) Its primary purpose is moving files and folders, but it can also rename them since the act of renaming a file is interpreted by the filesystem as moving it from one name to another
- How to run Terminal as root? - Ask Ubuntu
Run sudo -H gnome-terminal from the original non-root graphical terminal Enter your password as prompted by sudo The graphical terminal will start Still in the non-root terminal, press Ctrl+Z to suspend the root terminal While the root terminal is suspended, you can't use it; its interface will not respond to your actions
- How to delete a non-empty directory in Terminal? - Ask Ubuntu
Note: this is assuming you are already on the same level of the folder you want to delete in terminal, if not: sudo rm -r path to folderName FYI: you can use letters -f, -r, -v:-f = to ignore non-existent files, never prompt-r = to remove directories and their contents recursively-v = to explain what is being done
- How to show only hidden files in Terminal? - Ask Ubuntu
Restart terminal and type: subl Sublime should open up in the current directory Check unix commands: ls You should get a directory listing Windows Put the C:\Program Files\Sublime Text 2 in your PATH Create a subl bat file and save it in the directory: C:\Program Files\Sublime Text 2 Inside the file put: start sublime_text exe %*
- What is the difference between Terminal, Console, Shell, and Command . . .
(2) A terminal window a k a terminal emulator In Linux, a terminal window is the emulation of a console, contained in a GUI window It is the CLI you type your text in, and this input is read by the shell you're using There are many types of shells (e g bash, dash, ksh88) and terminals (e g konsole, gnome)
- How do I determine the total size of a directory (folder) from the . . .
There is a useful option to du called the --apparent-size It can be used to find the actual size of a file or directory (as opposed to its footprint on the disk) eg, a text file with just 4 characters will occupy about 6 bytes, but will still show up as taking up ~4K in a regular du -sh output
- How to unzip a zip file from the Terminal? - Ask Ubuntu
OPTION 1 – If the Zip File is in the same directory folder in which your terminal is and we want to extract it in the present working directory Use the following command to achieve the above described scenario sudo unzip zip_file_name zip if the zip file is protected with some password, then use the following command :
- How to reinitialize a terminal window instead of closing it and . . .
tset reset terminal intialization command: reset Tset initializes terminals Tset first determines the type of terminal that you are using This determination is done as follows, using the first terminal type found an advantage seems to be, that it's independent from the used shell also works with fish here
|
|
|