Linux Notes

From OpenEMR Project Wiki

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