mode

Status for device COM1:
———————–
Baud: 1200
Parity: None
Data Bits: 7
Stop Bits: 1
Timeout: OFF
XON/XOFF: OFF
CTS handshaking: OFF
DSR handshaking: OFF
DSR sensitivity: OFF
DTR circuit: ON
RTS circuit: ON

Status for device COM2:
———————–
Baud: 1200
Parity: None
Data Bits: 7
Stop Bits: 1
Timeout: OFF
XON/XOFF: OFF
CTS handshaking: OFF
DSR handshaking: OFF
DSR sensitivity: OFF
DTR circuit: ON
RTS circuit: ON

Status for device CON:
———————-
Lines: 300
Columns: 80
Keyboard rate: 31
Keyboard delay: 1
Code page: 437

Displays system status, changes system settings, or reconfigures ports or devices. Used without parameters, mode displays all the controllable attributes of the console and the available COM devices
http://en.wikipedia.org/wiki/Mode_(computer_interface)

chmod – change file mode bits

ABOUT chmod

In Unix and Unix-like operating systems, chmod is the command and system call which is used to change the access permissions of file system objects (files and directories). It is also used to change special mode flags. The request is filtered by the umask. The name is an abbreviation of change mode.[1]

TYPICAL COMMANDLINE EXPOSURE
[bash]
$ chmod +t source/
$ ls -l
total 12
drwxr-xr-x 2 ahiliation ahiliation 4096 2010-03-13 04:40 Desktop
drwxr-xr-x 2 ahiliation ahiliation 4096 2010-03-13 19:20 Downloads
drwxr-xr-t 2 ahiliation ahiliation 4096 2010-03-13 20:41 source
[/bash]

t - Save text attribute (sticky bit) - The user may delete or modify only those files in the directory that they own or have write permission for.

[bash]
$chmod -c
$ls -l rwsem.c
-rw-rw-r– 1 root root 21007 Aug 30 2011 rwsem.c
$chmod -c rwsem.c
chmod: missing operand after ‘rwsem.c’
Try ‘chmod –help’ for more information.
$chmod -c
chmod: missing operand
Try ‘chmod –help’ for more information.
$chmod -c 700 rwsem.c
chmod: changing permissions of ‘rwsem.c’: Operation not permitted
$sudo chmod -c 700 rwsem.c
mode of ‘rwsem.c’ changed from 0664 (rw-rw-r–) to 0700 (rwx——)
$
[/bash]

LINKS
https://en.wikipedia.org/wiki/Chmod
http://www.gnu.org/software/coreutils/manual/html_node/chmod-invocation.html

directory permissions

ahiliation@debian:~$ chmod +t source/
ahiliation@debian:~$ ls -l
total 12
drwxr-xr-x 2 ahiliation ahiliation 4096 2010-03-13 04:40 Desktop
drwxr-xr-x 2 ahiliation ahiliation 4096 2010-03-13 19:20 Downloads
drwxr-xr-t 2 ahiliation ahiliation 4096 2010-03-13 20:41 source

t – Save text attribute (sticky bit) – The user may delete or modify only those files in the directory that they own or have write permission for.

http://www.comptechdoc.org/os/linux/usersguide/linux_ugfilesp.html