How can I manipulate a directory in shell?

There are far more commands than these but here are a few to get your started: In order to keep track of the possibly millions of files on-line, Unix systems have a directory tree, which enables meaningful classification of files. For example, the most essential system programs are kept in /bin/, user home directories are all under /home/, and everything having to do with the WWW is under /www/. More specifically, your home directory is /home/you/ and the directory for your WWW files is /home/you/www/. pwd pwd This prints out your working directory: where you are. When you give a filename to a command without specifying some other directory, the filename is looked up, manipulated, or created in your current working directory. mkdir mkdir flintstones This makes a subdirectory of the current directory named flintstones. cd cd flintstones This changes the directory to the subdirectory named flintstones. cd /home/domain/www/flintstones This changes the directory to the home directory of the flintstones. cd /home/flintstones/www This changes the directory to the WWW directory of the flintstones. cd With no arguments, cd returns you to your home directory. rmdir rmdir flintstones This removes the subdirectory flintstones. The directory must be empty for this to...

What are some ways I can manipulate a file in shell?

mv mv fred wilma This moves fred to a file named wilma. This is the Unix way of renaming a file. mv fred flintstones/fred This moves fred to a file named fred in the subdirectory flintstones. This example could have been written mv fred flintstones/ as well, and the filename fred would have been retained in the new directory. After executing this command, there will no longer be a fred file in the current directory. cp cp fred wilma This copies fred to a file named wilma. cp fred flintstones/fred This copies fred to a file named fred in the subdirectory flintstones. rm rm flintstones This removes a file named flintstones. rm -rf flintstones This removes a directory named flintstones. The -r removes the directory, the -f forces it to remove files without asking you before it deletes each...

How can I check my disk space usage in SSH?

From the Unix prompt, typing the following: du -s /home/youruser This will give you a report back of the number of kilobytes (k) all files in your www directory add up to. You can also use -h switch like this to see human readable number in size: du -sh /home/youruser If you want to see the size of each folder under the current directory: du -ah –max-depth=1 For example to check the usage of each folder in public_html: cd ~/public_html du -ah...

What is scp / sftp?

Scp and sftp are both part of OpenSSH, the secure shell server we run. Do note that you cannot use sftp with an FTP only user – despite the name, sftp has fairly little in common with FTP. In other words, you must enable shell access for a user before you can use sftp (or scp) with that...

What is Telnet/SSH and do you allow it?

For security purposes, we do not enable Telnet at all and we only enable SSH access by request. You must contact our support department or open a support ticket to enable this feature. SSH is a powerful service which allows you to log into the server remotely to perform specific tasks. Common tasks include modifying file permissions, using compression utilities (tar and zip), and using editors (such as pico or vi) to modify files on the server...