Reading file encoded in UTF-8:
with open(fileName,'r') as f:
for line in f.readlines():
print line.decode("UTF-8")
with open(fileName,'r') as f:
for line in f.readlines():
print line.decode("UTF-8")
bind '\C-f:unix-filename-rubout'
Ctrl+F is bound to delete till previous slash
.bash_profile
--> login shell.bashrc
--> non-login shell
When bash is invoked as an interactive login shell, or as a non-interac-
tive shell with the --login option, it first reads and executes commands
from the file /etc/profile, if that file exists. After reading that file,
it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that
order, and reads and executes commands from the first one that exists and
is readable. The --noprofile option may be used when the shell is started
to inhibit this behavior.
/etc/environment
- This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of assignment expressions, one per line. Specifically, this file stores the system-wide locale and path settings.set
-- show environment variables + shell variablesenv
-- show environment variablesDEBIAN
1.BIOS