SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:handbook:commands [2010/07/19 22:09]
linea add touch command
en:handbook:commands [2016/10/01 07:30] (current)
hgt Examples are more fit to illustrate renaming than copying of file contents.
Line 11: Line 11:
 <​code>​ $ cp --help </​code>​ <​code>​ $ cp --help </​code>​
  
-To list all the commands available on the system, you can simply press the Tab button on the left of the keyboard twice. For commands provided by the Busybox utility you can type  +To list all the commands available on the system, you can simply press the Tab button on the left of the keyboard twice. For commands provided by the Busybox utility you can type
-<​code>​ busybox --help</​code>​+ 
 +<​code> ​busybox --help </​code>​
  
 ===== List the files in a directory ===== ===== List the files in a directory =====
Line 60: Line 61:
 ===== Move (rename) files or directories ===== ===== Move (rename) files or directories =====
  
-The mv command takes the contents of a file and copies it to a new file, then deletes ​the original ​file:  +When source and target file are in the same file system ​and the target ​file does not exist, the mv command simply renames the source ​file:  
 + 
 <​code>​ $ mv file1 file2 </​code>​ <​code>​ $ mv file1 file2 </​code>​
  
-It can also rename directories: ​+It can also rename directories ​(provided the new directory doesn'​t exist)
  
 <​code>​ $ mv ~/Documents ~/Docs </​code>​ <​code>​ $ mv ~/Documents ~/Docs </​code>​
  
-Note the contents of the file or directory will be overwritten if they already exist+Move files (and directories) to a new directory:​ 
 + 
 +<​code>​ $ mv file1 file2 dir1 dir2 ~/Documents </​code>​ 
 + 
 +When renaming is not possible, the mv command takes the contents of a file and copies it to a new file, then deletes ​the original ​file.
  
 ===== Create a new file ===== ===== Create a new file =====
Line 99: Line 104:
  
 <​code>​ $ rm -rf /​home/​hacker/​Templates </​code>​ <​code>​ $ rm -rf /​home/​hacker/​Templates </​code>​
 +
 +<note important>​Be careful when using this option. It will delete everything without asking!</​note>​
  
 Note you can also use the //-i// option to remove files or directories and their contents interactively:​ Note you can also use the //-i// option to remove files or directories and their contents interactively:​
Line 159: Line 166:
 ===== Talk on IRC ===== ===== Talk on IRC =====
  
-To discuss and transfer files via the many IRC servers available, SliTaz provides ​Rhapsody. The IRC client is simple, fast and lightweight,​ providing a pleasant, easy to handle ​ncurses ​configuration menu. To start the application from a terminal connecting to server (//​irc.toile-libre.org//​) and joining //#slitaz//: +To discuss and transfer files via the many IRC servers available, SliTaz provides ​LostIRC. The IRC client is simple, fast and lightweight,​ providing a pleasant, easy to handle ​GTK configuration menu. One of the main IRC channels for slitaz ​is irc.freenode.net#​slitaz
- +
-<​code>​ +
- $ rhapsody +
- /​connect ​irc.freenode.net +
- /​join ​#slitaz +
-</​code> ​+
  
 ===== Download files ===== ===== Download files =====
Line 171: Line 172:
 To download various file formats on the internet, you have the //wget// command. To grab a simple html page, the contents of a folder or an entire website: To download various file formats on the internet, you have the //wget// command. To grab a simple html page, the contents of a folder or an entire website:
  
-<​code> ​ $ wget http://​www.slitaz.org/​en/​doc/handbook/ </​code> ​+<​code> ​ $ wget http://​www.slitaz.org/​en/​doc/​ </​code> ​
  
 ===== List the available partitions ===== ===== List the available partitions =====
 
en/handbook/commands.1279570196.txt.gz · Last modified: 2010/07/19 22:09 by linea