Helpful Information
 
 
Category: Programming Articles
List of SSH Commands

Feel free to add more to the list if you have any as I'm sure there are more that I've missed :)

Display everything in the current directory
lsDisplay all files, including hidden files
ls -aDisplay all files, along with the size and timestamp
ls -lUncompress tar.gz files
tar -zxpf file.tar.gzUncompress .tar files
tar -xpf file.tar.gzUncompress .gz files
gunzip fileCopy a file to a new file
cp fileMove a file to a new file, or rename
mv fileCreate a directory
mkdir dirDelete a directory
rmdir dirDelete a directory
rm -rf dirDelete a file
rm fileMove to a directory
cd dirMove to a lower directory
cd ..Move to the home directory
cd ~Move to the previous directory
cd -
View processes and server loads (press 'q' to stop viewing)
topCreate or edit a file
vi file
Display the current directory
pwdEdit a file
pico fileEdit a file
nano fileConnect to a FTP server
ftp siteView a webpage
lynx siteDisplay the hard drive stats
dfDisplay your quota
quotaDisplay the uptime of the server
uptimeDisplay the operating system stats
uname -aDisplay your info
whoamiDisplay other users connected to the server
whoDisplay the last login
lastTell where a file is located
whereis fileCheck your email
mailDisplay processes you're running
ps -xDisplay all processes running
ps -aDisplay running processes, with CPU/Memory usage
ps -uxKill a process
kill pidKill an eggdrop process
kill -9 pidKill all running process of the same type
killall programDescription of a command
whatis commandDisplay help on the command
man commandReport of the process list, 1 minute and 5 minute average load every 10 minutes since midnight server time
sar -qTars up the file or directory of your choice (Replace filename.tar.gz with the name you want your tar file to have, with the tar.gz extension on the end and replace file with the file or directory you want to tar up)
tar -zcf filename.tar.gz fileUpdate the locate/search DB
updatedb

Very nice!!

What about "top" to view processes and server loads? (and clicking q to stop viewing it) <- my favorite command :)

And logout?

Pico Help (http://www.panix.com/help/pico.html)

The Nano Text Editor (http://mintaka.sdsu.edu/reu/nano.html)

What!? No vim? :O

vi file

Nice article though :)

Thanks Eric and Lynne!

Lynne, I tried testing that one, but for some reason wasn't working for me last night so I didn't post it, however, I tested again a few minutes ago, and it's working now.

Eric, what does vim do? I can't say that I've ever used that one :confused:

--------------- Added 1315014675 at 1315014675 ---------------

Hmm....nevermind. I believe I found what vim does. It can create or edit a file. Correct me if I'm wrong though :)

thank you for advice very good

thanks for info

nice list...
wish i had access to server root !










privacy (GDPR)