vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   List of SSH Commands (https://vborg.vbsupport.ru/showthread.php?t=269544)

HMBeaty 09-01-2011 10:00 PM

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
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

Lynne 09-02-2011 02:43 PM

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

Eric 09-02-2011 03:20 PM

What!? No vim? :O

Code:

vi file
Nice article though :)

HMBeaty 09-03-2011 12:43 AM

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 [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 :)

m2006 09-25-2011 05:24 AM

thank you for advice very good

kamrandahir 09-26-2011 03:10 PM

thanks for info

abdobasha2004 10-10-2011 10:53 AM

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


All times are GMT. The time now is 10:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01180 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (44)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete