Friday 26 June 2015

.bashrc file Ubuntu

Filesystem:
boot block
super block
Inode block
Data block

Device file: Linux treats hard drive as a file too.

/dev : all devices files are in here. Everything is a file.

cat a1>/dev/lp1
$mount: all mounted things will be shown using this command.

$mkdir /usr/bin/mnt
$mount /dev/sdb1(Device file of a pendrive) /usr/bin/mnt (folder to mounted on)
After this file the pendrive will be in the mnt directory.

For every mount there must be an unmount after the work is complete.

du command shows the disk usage.

df command shows the disk free space of all mounted devices.

.bashrc :
Make a file in your home witht the name .bashrc
cat> .bashrc
write code inside of this file and it will run whenever you login to this folder these are called configuration files.

No comments:

Post a Comment