Difference between revisions of "Linux Notes"

From OpenEMR Project Wiki
Line 40: Line 40:
:After Config Changes:  <tt style="font-size: 130%">sudo etc/init.d/vsftpd restart</tt>
:After Config Changes:  <tt style="font-size: 130%">sudo etc/init.d/vsftpd restart</tt>
<br>
<br>
:Configuration File
:Configuration File Settings
:::*Allow authentication of users:    <tt style="font-size: 130%">local_enable=YES</tt>
:::*Allow authentication of users:    <tt style="font-size: 130%">local_enable=YES</tt>
:::*Allow upload of files:    <tt style="font-size: 130%">write_enable=YES</tt>
:::*Allow upload of files:    <tt style="font-size: 130%">write_enable=YES</tt>

Revision as of 17:12, 25 May 2014

General




Text Editors - Command Line

vim
nano
  • Derived from pico, more features than pico, easier to use than vim.
  • Control-Y = Page Up. Control-V = Page Down.
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

Config File: /etc/vsftpd.conf
After Config Changes: sudo etc/init.d/vsftpd restart


Configuration File Settings
  • Allow authentication of users: local_enable=YES
  • Allow upload of files: write_enable=YES

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