Difference between revisions of "Linux Notes"

From OpenEMR Project Wiki
Line 47: Line 47:


<br><br>
<br><br>
==Directory Structure==
<table width=900 cellspacing=0 cellpadding=0>
<tr><td width=80><td width=820>
<tr><td>'''bin'''<td>Essential user command binaries.
<tr><td>'''boot'''<td>Static files of the boot loader.
<tr><td>'''cdrom'''
<tr><td>'''dev'''<td>Device files.
<tr><td>'''etc'''<td>Host-specific CONFIGURATION files, i.e. preferences. 
<tr><td><td>Startup, shutdown, start, stop scripts for every individual program.
<tr><td>'''home'''<td>User home directories.
<tr><td>'''lib'''<td>Essiential shared libraries and kernel modules.
<tr><td>'''media'''<td>Mount point for removable media.
<tr><td>'''mnt'''<td>Mount point for a temporarily mounted filesystem.
<tr><td>'''opt'''<td>Add-on application software packages.
<tr><td>'''proc'''<td>Process information.  Virtual filesystem documentation kernel and process status as text files.
<tr><td>'''root'''<td>Home directory for the root user.
<tr><td>'''run'''
<tr><td>'''sbin'''<td>System binaries.
<tr><td>'''srv'''<td>Data for services provided by the system.
<tr><td>'''sys'''
<tr><td>'''usr'''<td>Multi-user utilities & applications.
<tr><td>'''var'''<td>Variable files.  The contents of the files here is expected to grow.
<tr><td><td>Contains log, lock, spool, mail, and temp files.
<tr><td><br>
</table>
<br>


==Miscellaneous Commands==
==Miscellaneous Commands==
  sudo reboot
  sudo reboot
<br><br>
<br><br>

Revision as of 16:42, 25 May 2014

Text Editors - Command Line

vim
nano
  • Derived from pico, more features than pico, easier to use than vim.
emacs



jed
  • Menu based text editor. Yes, menus in the command line!



Mail Readers - Command Line

mail
mutt



Viewing Files

less [FILENAME]



FTP Servers

vsftp

proftpd



SSH Server

Configure

sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.default
sudo chmod a-w sshd_config.default
sudo nano /etc/ssh/sshd_config
[Change:  PasswordAuthentication yes]
sudo restart ssh



Directory Structure

binEssential user command binaries.
bootStatic files of the boot loader.
cdrom
devDevice files.
etcHost-specific CONFIGURATION files, i.e. preferences.
Startup, shutdown, start, stop scripts for every individual program.
homeUser home directories.
libEssiential shared libraries and kernel modules.
mediaMount point for removable media.
mntMount point for a temporarily mounted filesystem.
optAdd-on application software packages.
procProcess information. Virtual filesystem documentation kernel and process status as text files.
rootHome directory for the root user.
run
sbinSystem binaries.
srvData for services provided by the system.
sys
usrMulti-user utilities & applications.
varVariable files. The contents of the files here is expected to grow.
Contains log, lock, spool, mail, and temp files.


Miscellaneous Commands

sudo reboot