You can connect to SSH (aka the Linux command-line) using PuTTY which is provided with all our plans.
Using the Command-line (Space Check, Make a Torrent, Remove a Folder, Find Files, Find Your IP Address, Using the Unrar Command)
When looking at commands such as
cat --help
the "cat" is the program being called and "--help" is an option being passed to it. The options are dependent on the program, however there is usually concise help available for all programs with the command
man program
entering the "q" will exit this manual page.
Space Check
* To check the amount of space used in your slice, type this command:
du ~/ -s --si
-s is for summarize, instead of each folder size listed separately
--si is for use powers of 1000, not 1024
* Tip:
You can create an alias for the above command (or any command) in your .bash_aliases file, which is located in your ~ (home) directory. Just edit the .bash_aliases file, and add this line to it:
alias space='du ~/ -s --si'
You can name it whatever you want - I happen to call it space, because it's easy for me to remember.
Make a torrent
* To make a .torrent file using command line, execute this command:
mktorrent -v -p -a http://tracker.url -o filename.torrent folder_name
-v is for verbose
-p is for private, as in not DTH or PeerExchange
-a is for tracker url follows
-o is for output file name follows
Important! The command needs to be all in one line, and quotes must be used around the folder name if it contains spaces.
Example
If I wanted to make a torrent for What.cd from the data in the VA - Summer Trance 2009 directory I already have on my server, I would go into the data folder:
cd private/tranmission/data
Then type the following command:
mktorrent -v -p -a http://tracker.what.cd:34000/xxxXXXxxx/announce -o VA-Summer_Trance_2009.torrent "VA - Summer Trance 2009"
Please note that you must use quotes if the target dir name contains spaces.
Remove a folder
* To remove a whole folder, with files still in it, execute this command:
rm -rf foldername/
-r is for recursive
-f is for force removal
* If the folder name has a space in it, use quotes around the folder name:
rm -rf "some folder name"
Find files
* To find specific files by name in your home folder, use this command:
find ~ -name [name_of_file]
~ stands for your home folder; same as $HOME or /home/username
Example:
find ~ -name blueray
This will find all files with the word blueray in the name. You can use wildcards like * to search a partial name, like blue*
* To find files by extension, use this command:
find ~ -name "*.[given_extension]"
Example:
find ~ -name "*.jpg"
This will show you all files, with the .jpg extension.
Find your IP Address
* To find the IP address for your server, use this command:
ho***ame -i
-i is for IP addresses for the host name
Using the unrar command
* To extract files from a rar archive on the server, use this command:
unrar e *.rar
-e is for Extract files to current directory
-*.rar is for any rar file in the current directory.
* To unrar a specific file, type in its whole name, ie.:
unrar e SomeMovieChunkFile.rar
* To list files inside rar archive without extracting them:
unrar l file.rar
-l is for list (not a number 'one')
* To extract files with full path, type this command:
unrar x file.rar
-x is for extract with full path
* To test integrity of archive file, type this command:
unrar t file.rar
-t is for testing integrity of archive
This page was last edited by on Monday 2nd Nov 2009, 0:57:23.
If you have a problem post here!









LinkBack URL
About LinkBacks
Reply With Quote




