Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > Programming Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
List of SSH Commands
HMBeaty's Avatar
HMBeaty
Join Date: Sep 2005
Posts: 4,141

I have no details

Show Printable Version Email this Page Subscription
HMBeaty HMBeaty is offline 09-01-2011, 10:00 PM

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
Code:
ls
Display all files, including hidden files
Code:
ls -a
Display all files, along with the size and timestamp
Code:
ls -l
Uncompress tar.gz files
Code:
tar -zxpf file.tar.gz
Uncompress .tar files
Code:
tar -xpf file.tar.gz
Uncompress .gz files
Code:
gunzip file
Copy a file to a new file
Code:
cp file
Move a file to a new file, or rename
Code:
mv file
Create a directory
Code:
mkdir dir
Delete a directory
Code:
rmdir dir
Delete a directory
Code:
rm -rf dir
Delete a file
Code:
rm file
Move to a directory
Code:
cd dir
Move to a lower directory
Code:
cd ..
Move to the home directory
Code:
cd ~
Move to the previous directory
Code:
cd -
View processes and server loads (press 'q' to stop viewing)
Code:
top
Create or edit a file
Code:
vi file
Display the current directory
Code:
pwd
Edit a file
Code:
pico file
Edit a file
Code:
nano file
Connect to a FTP server
Code:
ftp site
View a webpage
Code:
lynx site
Display the hard drive stats
Code:
df
Display your quota
Code:
quota
Display the uptime of the server
Code:
uptime
Display the operating system stats
Code:
uname -a
Display your info
Code:
whoami
Display other users connected to the server
Code:
who
Display the last login
Code:
last
Tell where a file is located
Code:
whereis file
Check your email
Code:
mail
Display processes you're running
Code:
ps -x
Display all processes running
Code:
ps -a
Display running processes, with CPU/Memory usage
Code:
ps -ux
Kill a process
Code:
kill pid
Kill an eggdrop process
Code:
kill -9 pid
Kill all running process of the same type
Code:
killall program
Description of a command
Code:
whatis command
Display help on the command
Code:
man command
Report of the process list, 1 minute and 5 minute average load every 10 minutes since midnight server time
Code:
sar -q
Tars 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)
Code:
tar -zcf filename.tar.gz file
Update the locate/search DB
Code:
updatedb
Reply With Quote
  #2  
Old 09-02-2011, 02:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

The Nano Text Editor
Reply With Quote
  #3  
Old 09-02-2011, 03:20 PM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What!? No vim? :O

Code:
vi file
Nice article though
Reply With Quote
Благодарность от:
HMBeaty
  #4  
Old 09-03-2011, 12:43 AM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

--------------- Added [DATE]1315014675[/DATE] at [TIME]1315014675[/TIME] ---------------

Hmm....nevermind. I believe I found what vim does. It can create or edit a file. Correct me if I'm wrong though
Reply With Quote
  #5  
Old 09-25-2011, 05:24 AM
m2006's Avatar
m2006 m2006 is offline
 
Join Date: Jan 2006
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you for advice very good
Reply With Quote
  #6  
Old 09-26-2011, 03:10 PM
kamrandahir kamrandahir is offline
 
Join Date: Jul 2008
Location: EveryWhere
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for info
Reply With Quote
  #7  
Old 10-10-2011, 10:53 AM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice list...
wish i had access to server root !
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04705 seconds
  • Memory Usage 2,286KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (44)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (6)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete