Category Archives: Bash

Freeing up RAM in Linux

NOTE: Little clarification, this is not needed at all ,as memory is freed when required.

WHY IT MAY BE HELP-FULL: This clears the page-cache , dentires and inodes.

IT’S TRANSLATION : It may be that you are watching a movie or using a Virtual Machine , a resource hungry process has filled up your ram by caching data and the data needs to be continuously removed  to make space for new data . This is managed by the kernel.

IF YOU STILL DON’T  GET IT: Notice  video in your movie hanging (not audio) while your ram gets cached Or your system running a bit slow ?

1) Stop the process consuming loads of memory. (Check System Monitor).
2) Open a terminal with root privileges .
3) Sync
4) echo 3 > /proc/sys/vm/drop_caches
5) echo 0 > /proc/sys/vm/drop_caches

Bash Commands List

Well here is a basic index of commands used in bash found it at a great site  here

For More Info on the commands visit the above link:

alias          Create an alias
apropos     Search Help manual pages (man -k)
awk           Find  and Replace text, database sort/validate/index

break         Exit from a loop
builtin        Run a shell builtin
bzip2         Compress or decompress named file(s)

cal             Display a calendar
case           Conditionally perform a command
cat             Display the contents of a file
cd              Change Directory
cfdisk        Partition table manipulator for Linux
chgrp        Change group ownership
chmod      Change access permissions
chown      Change file owner and group
chroot       Run a command with a different root directory
cksum       Print CRC checksum and byte counts
clear          Clear terminal screen
cmp           Compare two files
comm        Compare two sorted files line by line
command  Run a command – ignoring shell functions
continue    Resume the next iteration of a loop
cp             Copy one or more files to another location
cron          Daemon to execute scheduled commands
crontab     Schedule a command to run at a later time
csplit        Split a file into context-determined pieces
cut            Divide a file into several parts

date          Display or change the date & time
dc             Desk Calculator
dd             Data Dump – Convert and copy a file
Continue reading Bash Commands List