How Can You Terminate Vi Session?
Use command: ZZ that is save changes and quit.
Use command line: ":wq" that is write changes and quit.
Use command line: ":q!" to ignore changes and quit.
How Can You Copy Lines Into The Buffer In Command Mode?
yy - copy a single line defined by current cursor position
3yy - copy 3 lines. Current line and two lines below it.
We Saw The Mention On The Linux Bios Website About One Million Devices Shipped With Linux Bios. Could You Tell Us More About These Devices?
Yes, these are internet terminals that were built in India, based on the [x86 system-on-chip] STPC chip, I am told; also, there evidently is a Turkish-built digital TV that runs Linux BIOS. I have also heard that there are routers and many other embedded devices running Linux BIOS. I think at this point that 1 million is a low number. I am in contact with other set-top box vendors that are talking about numbers in the lOs of millions for their products. These numbers actually make the OLPC numbers seem small, which is in it amazing.
What's Your Goal For Your Talk At Fosdem?
I’d like to communicate the basic ideas — that Linux is a good BIOS, and why; why Linux BIOS is built the way it is; where we are going; and how people can help. Most importantly, why it all matters — and it really matters a lot. We’re on the verge of losing control of the systems we buy, and we need to make a conscious effort, as a community, to ensure this loss of control does not happen. That effort will not be without some sacrifice, but if we are to maintain our ability to use and program our machines, and have fun with them, we have to act now. Because, if the computing business stops being fun, what’s the point$
What Are Mysql Transactions?
A set of instructions/queries that should be executed or rolled back as a single atomic unit.
Explain Multi-version Concurrency Control In Mysql?
Each row has two additional columns associated with it - creation time and deletion time, but instead of storing timestamps, MySQL stores version numbers.
Name Two Methods You Could Use To Rename A File?
Two methods that could be used
a. use the mv command
b. copy the file and give it a new name and then remove the original file if no longer needed.
List All The Files Beginning With A?
To list all the files beginning with A command: ls A*
Which Of The Quoting Or Escape Characters Allows The Dollar Sign ($) To Retain Its Special Meaning?
The double quote (") allows the dollar sign ($) to retain its special meaning. Both the backslash (\) and single quote (') would remove the special meaning of the dollar sign.
What Is A Faster Way To Do The Same Command? Mv Fileo.txt Newdir Mv Filel.txt Newdir Mv File2.txt Newdir Mv File3.txt Newdir?
A shortcut method would be: mv file?.txt newdir
List Two Ways To Create A New File
a.Copy a file to make a new file.
b. Use the output operator e.g. ls -l > newfile.txt
What Is The Difference Between > And >> Operators?
The operator > either overwrites the existing file (WITHOUT WARNING) or creates a new file.
The operator >> either adds the new contents to the end of an existing file or creates a new file.
How Can You See All Mounted Drives?
mount -l
How Can You Find A Path To The File In The System?
locate file_name (locate - list files in databases that match a pattern)
What Linux Hotkeys Do You Know?
Ctrl-Alt-F1 Exit to command prompt
Ctrl-Alt-F7 or F8 Takes you back to KDE desktop from command prompt
Crtl-Alt-Backspace Restart XWindows
Ctrl-Alt-D Show desktop
What Can You Tell About The Tar Command?
The tar program is an immensely useful archiving utility. It can combine an entire directory tree into one large file suitable for transferring or compression.
What Types Of Files You Know?
Files come in eight flavors
Normal files
Directories
Hard links
Symbolic links
Sockets
Named pipes
Character devices
Block devices
How You Will Uncompress The File?
Use tar command (The GNU version of the tar archiving utility)
tar -zxvf file_name.tar.gz
What Does Grep() Stand For?
General Regular Expression Parser.
Explain Mysql Locks.
Table-level locks allow the user to lock the entire table, page-level locks allow locking of certain portions of the tables (those portions are referred to as tables), row-level locks are the most granular and allow locking of specific rows.
Explain Mysql Architecture.
The front layer takes care of network connections and security authentications, the middle layer does the SQL query parsing, and then the query is handled off to the storage engine. A storage engine could be either a default one supplied with MySQL (MyISAM) or a commercial one supplied by a third-party vendor (ScaleDB, InnoDB, etc.)
List The Main Applications Of 8 Bit Microprocessors?
8 bit microprocessors are used in a variety of applications such as appliances automobiles ,industrial process and control applications.
What Is Nv-ram?
Nonvolatile Read Write Memory, also called Flash memory. It is also know as shadow RAM.
Can Rom Be Used As Stack?
ROM cannot be used as stack because it is not possible to write to ROM.
What Is Stack?
Stack is a portion of RAM used for saving the content of Program Counter and general purpose registers.
What Is Flag?
Flag is a flip-flop used to store the information about the status of a processor and the status of the instruction executed most recently .
Which Processor Structure Is Pipelined?
All x86 processors have pipelined structure.
What Is A Compiler?
Compiler is used to translate the high-level language program into machine code at a time. It doesn’t require special instruction to store in a memory, it stores automatically. The Execution time is less compared to Interpreter.
Differentiate Between Ram And Rom?
RAM: Read / Write memory, High Speed, Volatile Memory. ROM: Read only memory, Low Speed, Non Voliate Memory.
What Is A Microprocessor?
Microprocessor is a program-controlled device, which fetches the instructions from memory, decodes and executes the instructions. Most Micro Processor is single- chip devices.
What Command Would You Use To Create An Empty File Without Opening It To Edit It?
You use the touch command to create an empty file without needing to open it. s a and e point to invalid commands, though either of these might actually be aliased to point to a real command. s b and c utilize editors, and so do not satisfy the requirements of the . actually touch is used to change the timestamps of a file if its exits, otherwise a new file with current timestamps will be created.
What Do You Type To Stop A Hung Process That Resists The Standard Attempts To Shut It Down?
The kill command by itself tries to allow a process to exit cleanly. You type kill -9 PID, on the other hand, to abruptly stop a process that will not quit by any other means. Also, pressing CtrI+C works for many programs. s b and d are only valid in some contexts, and even in those contexts will not work on a hung process.
Which Two Commands Can You Use To Delete Directories?
You can use rmdir or rm -rf to delete a directory. a is incorrect, because the rm command without any specific flags will not delete a directory, it will only delete files. s d and e point to a non-existent command.
What Is Difference Between At And Cron?
Cron command is used to schedule the task daily at the same time repeatedly ,“at” command is used to schedule the task only once i.e. to run only one time.
Which Of The Following Tasks Cannot Be Accomplished With The Touch Command?
The touch command is usually used to modify either a file’s access or modification time. It can also be used to create a new file.
You Want To Copy The User's Home Directories To A New Location. Which Of The Following Commands Will Accomplish This?
The -r option tells the cp command to recurs the directories. The -P option retains the original permissions.
Use command: ZZ that is save changes and quit.
Use command line: ":wq" that is write changes and quit.
Use command line: ":q!" to ignore changes and quit.
How Can You Copy Lines Into The Buffer In Command Mode?
yy - copy a single line defined by current cursor position
3yy - copy 3 lines. Current line and two lines below it.
We Saw The Mention On The Linux Bios Website About One Million Devices Shipped With Linux Bios. Could You Tell Us More About These Devices?
Yes, these are internet terminals that were built in India, based on the [x86 system-on-chip] STPC chip, I am told; also, there evidently is a Turkish-built digital TV that runs Linux BIOS. I have also heard that there are routers and many other embedded devices running Linux BIOS. I think at this point that 1 million is a low number. I am in contact with other set-top box vendors that are talking about numbers in the lOs of millions for their products. These numbers actually make the OLPC numbers seem small, which is in it amazing.
What's Your Goal For Your Talk At Fosdem?
I’d like to communicate the basic ideas — that Linux is a good BIOS, and why; why Linux BIOS is built the way it is; where we are going; and how people can help. Most importantly, why it all matters — and it really matters a lot. We’re on the verge of losing control of the systems we buy, and we need to make a conscious effort, as a community, to ensure this loss of control does not happen. That effort will not be without some sacrifice, but if we are to maintain our ability to use and program our machines, and have fun with them, we have to act now. Because, if the computing business stops being fun, what’s the point$
What Are Mysql Transactions?
A set of instructions/queries that should be executed or rolled back as a single atomic unit.
Explain Multi-version Concurrency Control In Mysql?
Each row has two additional columns associated with it - creation time and deletion time, but instead of storing timestamps, MySQL stores version numbers.
Cognizant Frequently Asked Linux Interview Questions Answers |
Name Two Methods You Could Use To Rename A File?
Two methods that could be used
a. use the mv command
b. copy the file and give it a new name and then remove the original file if no longer needed.
List All The Files Beginning With A?
To list all the files beginning with A command: ls A*
Which Of The Quoting Or Escape Characters Allows The Dollar Sign ($) To Retain Its Special Meaning?
The double quote (") allows the dollar sign ($) to retain its special meaning. Both the backslash (\) and single quote (') would remove the special meaning of the dollar sign.
What Is A Faster Way To Do The Same Command? Mv Fileo.txt Newdir Mv Filel.txt Newdir Mv File2.txt Newdir Mv File3.txt Newdir?
A shortcut method would be: mv file?.txt newdir
List Two Ways To Create A New File
a.Copy a file to make a new file.
b. Use the output operator e.g. ls -l > newfile.txt
What Is The Difference Between > And >> Operators?
The operator > either overwrites the existing file (WITHOUT WARNING) or creates a new file.
The operator >> either adds the new contents to the end of an existing file or creates a new file.
How Can You See All Mounted Drives?
mount -l
How Can You Find A Path To The File In The System?
locate file_name (locate - list files in databases that match a pattern)
What Linux Hotkeys Do You Know?
Ctrl-Alt-F1 Exit to command prompt
Ctrl-Alt-F7 or F8 Takes you back to KDE desktop from command prompt
Crtl-Alt-Backspace Restart XWindows
Ctrl-Alt-D Show desktop
What Can You Tell About The Tar Command?
The tar program is an immensely useful archiving utility. It can combine an entire directory tree into one large file suitable for transferring or compression.
What Types Of Files You Know?
Files come in eight flavors
Normal files
Directories
Hard links
Symbolic links
Sockets
Named pipes
Character devices
Block devices
How You Will Uncompress The File?
Use tar command (The GNU version of the tar archiving utility)
tar -zxvf file_name.tar.gz
What Does Grep() Stand For?
General Regular Expression Parser.
Explain Mysql Locks.
Table-level locks allow the user to lock the entire table, page-level locks allow locking of certain portions of the tables (those portions are referred to as tables), row-level locks are the most granular and allow locking of specific rows.
Explain Mysql Architecture.
The front layer takes care of network connections and security authentications, the middle layer does the SQL query parsing, and then the query is handled off to the storage engine. A storage engine could be either a default one supplied with MySQL (MyISAM) or a commercial one supplied by a third-party vendor (ScaleDB, InnoDB, etc.)
List The Main Applications Of 8 Bit Microprocessors?
8 bit microprocessors are used in a variety of applications such as appliances automobiles ,industrial process and control applications.
What Is Nv-ram?
Nonvolatile Read Write Memory, also called Flash memory. It is also know as shadow RAM.
Can Rom Be Used As Stack?
ROM cannot be used as stack because it is not possible to write to ROM.
What Is Stack?
Stack is a portion of RAM used for saving the content of Program Counter and general purpose registers.
What Is Flag?
Flag is a flip-flop used to store the information about the status of a processor and the status of the instruction executed most recently .
Which Processor Structure Is Pipelined?
All x86 processors have pipelined structure.
What Is A Compiler?
Compiler is used to translate the high-level language program into machine code at a time. It doesn’t require special instruction to store in a memory, it stores automatically. The Execution time is less compared to Interpreter.
Differentiate Between Ram And Rom?
RAM: Read / Write memory, High Speed, Volatile Memory. ROM: Read only memory, Low Speed, Non Voliate Memory.
What Is A Microprocessor?
Microprocessor is a program-controlled device, which fetches the instructions from memory, decodes and executes the instructions. Most Micro Processor is single- chip devices.
What Command Would You Use To Create An Empty File Without Opening It To Edit It?
You use the touch command to create an empty file without needing to open it. s a and e point to invalid commands, though either of these might actually be aliased to point to a real command. s b and c utilize editors, and so do not satisfy the requirements of the . actually touch is used to change the timestamps of a file if its exits, otherwise a new file with current timestamps will be created.
What Do You Type To Stop A Hung Process That Resists The Standard Attempts To Shut It Down?
The kill command by itself tries to allow a process to exit cleanly. You type kill -9 PID, on the other hand, to abruptly stop a process that will not quit by any other means. Also, pressing CtrI+C works for many programs. s b and d are only valid in some contexts, and even in those contexts will not work on a hung process.
Which Two Commands Can You Use To Delete Directories?
You can use rmdir or rm -rf to delete a directory. a is incorrect, because the rm command without any specific flags will not delete a directory, it will only delete files. s d and e point to a non-existent command.
What Is Difference Between At And Cron?
Cron command is used to schedule the task daily at the same time repeatedly ,“at” command is used to schedule the task only once i.e. to run only one time.
Which Of The Following Tasks Cannot Be Accomplished With The Touch Command?
The touch command is usually used to modify either a file’s access or modification time. It can also be used to create a new file.
You Want To Copy The User's Home Directories To A New Location. Which Of The Following Commands Will Accomplish This?
The -r option tells the cp command to recurs the directories. The -P option retains the original permissions.
Post a Comment