0% found this document useful (0 votes)
2 views2 pages

Memory Management

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Memory Management

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Question: Why Do Developers Use MD5?

MD5 is an encryption method so it is used to encrypt the passwords before saving.


Question: What Are File Permissions In Linux?
29/71
There are 3 types of permissions in Linux
Read: User can read the file and list the directory.
Write: User can write new files in the directory .
Execute: User can access and run the file in a directory.
Question: Memory Management In Linux?
It is always required to keep a check on the memory usage in order to find out
whether the
user is able to access the server or the resources are adequate. There are roughly
5
methods that determine the total memory used by the Linux.
This is explained as below
Free command: This is the most simple and easy to use the command to check
memory usage. For example: ‘$ free –m’, the option ‘m’ displays all the data in
MBs.
/proc/meminfo: The next way to determine the memory usage is to read
/proc/meminfo file. For example: ‘$ cat /proc/meminfo’
Vmstat: This command basically lays out the memory usage statistics. For example:
‘$ vmstat –s’
Top command: This command determines the total memory usage as well as also
monitors the RAM usage.
Htop: This command also displays the memory usage along with other details.
Question: Granting Permissions In Linux?
System administrator or the owner of the file can
grant permissions using the ‘chmod’ command.
Following symbols are used while writing
permissions
chmod +x
Question: What Are Directory Commands In Linux?
Here are few important directory commands in Linux
pwd: It is a built-in command which stands for ‘print working directory’. It
displays
the current working location, working path starting with / and directory of the
user.
Basically, it displays the full path to the directory you are currently in.
Is: This command list out all the files in the directed folder.
cd: This stands for ‘change directory’. This command is used to change to the
30/71
directory you want to work from the present directory. We just need to type cd
followed by the directory name to access that particular directory.
mkdir: This command is used to create an entirely new directory.
rmdir: This command is used to remove a directory from the system.
Question: What Is Shell Script In Linux?
In the simplest terms, a shell script is a file containing a series of commands.
The shell reads this file and carries out the commands as though they have been
entered
directly on the command line.
The shell is somewhat unique, in that it is both a powerful command line interface
to the
system and a scripting language interpreter.
As we will see, most of the things that can be done on the command line can be done
in
scripts, and most of the things that can be done in scripts can be done on the
command
line.
We have covered many shell features, but we have focused on those features most
often
used directly on the command line.
The shell also provides a set of features usually (but not always) used when
writing
programs.

You might also like