Write the output for the following commands: (i) ls –a (ii) date “+%D”

1 Answer

Answer :

i) ls –a : list all files including hidden files. These are files that start with “.”.

image


ii) date “+%D” : Display date as mm/dd/yy. output: 11/26/19

Related questions

Description : Which of the following commands is used to list contents of directories? A. ls B. lp C. dir D. tar E. None of the above

Last Answer : A. ls

Description : Which of the following commands is used to display the directory attributes rather than its contents? A. ls -l -d B. ls -l C. ls -x D. ls -F E. None of the above

Last Answer : A. ls -l -d

Description : What is the output of printf("%d")?

Last Answer : 1. When we write printf("%d",x); this means compiler will print the value of x. But as here, there is nothing after ï ½%dï ½ so compiler will show in output window garbage value. 2. When we ... an error without the proper number and type of arguments for things like printf(...) and scanf(...).

Description : What is wrong in this statement? scanf(“%d”,whatnumber);

Last Answer : An ampersand & symbol must be placed before the variable name whatnumber. Placing & means whatever integer value is entered by the user is stored at the “address” of the variable name. This is a common mistake for programmers, often leading to logical errors.

Description : With reference to the above given tables, write commands in SQL for (i) and (ii) and output for (iii) below: -Technology

Last Answer : (i) select TName, Passenger from Train T, Reservation R where T.TrainId=R.TrainId;(ii) select T.* from Train T, Reservation R where T.TrainId!=R.TrainId;(iii)TrainIdTNameSourceDestination3424Lucknow MailLucknowNew Delhi5400Century ExpressNew DelhiKanpur

Description : What is the output when following code is executed ? names1 = ['Amir', 'Bear', 'Charlton', 'Daman'] names2 = names1 names3 = names1[:] names2[0] = 'Alice' names3[1] = 'Bob' sum = 0 for ls in (names1, names2, names3): ... if ls[1] == 'Bob': sum += 10 print sum a) 11 b) 12 c) 21 d) 22

Last Answer : d) 22

Description : Trace the error: void main( ) { int *b, &a; *b = 20 printf(“%d, %d”, a, *b) } (A) No error (B) Logical error (C) Syntax error (D) Semantic error

Last Answer : (C) Syntax error

Description : Consider the following table Furniture. Write SQL commands for the statements (i) to (viii) and write output for SQL queries (ix) and (x). -Technology

Last Answer : SQL commands for the given statements (i) to (viii) ;1. SELECT FCODE, NAME. PRICE FROM Furniture WHERE PRICE < 5000;2. SELECT NAME. PRICE FROM Furniture3.4. WHERE NAME LIKE %table% ;5. SELECT DISTINCT WCODE ... ;15.16. Output for SQL queries (ix) and (x)(ix)SUM(PRICE)6500(x)COUNT(DISTINCT PRICE)5

Description : Describe use of following commands with example: i) route ii) net stat

Last Answer : Route: Packets are transmitted from one computer to another. The route determines where the process starts and what computer system needs to send the packet for it to reach its destination. In ... or softwaredefined network interface) and network protocol statistics. Options of Netstat:

Description : Write syntax for following commands: i)Sleep ii)Kill

Last Answer : i)sleep Syntax: sleep NUMBER[SUFFIX]… sleep OPTION ii) kill Syntax: kill pid

Description : If the steering stand selector switch is allowed to remain in the 'Non-Followup' mode after testing of the steering gear, the rudder will _____________. EL-0097 A. not respond to commands from the ... actuator D. stop moving only when the helm is counter-rotated to put the pump at neutral stroke

Last Answer : Answer: A

Description : Is the Roku 2 XD streaming player compatible with the Buffalo LS-WX2.0TL/R1 LinkStation Duo NAS drive's DLNA server?

Last Answer : answer:Anything that's DLNA certified should work with any Buffalo product, but I can't say for certain if Roku's are tested. Buffalo NAS devices are tested with Windows, OS X, PS 3, and XBox 360s and I've ... I'll ask today. If we don't, I'll suggest doing so just to see how far that gets.

Description : Why do people call Blunts, L's?

Last Answer : Why do you call an L a Blunt?

Description : In quadrilateral ABCD of the given figure, X and Y are points on diagonal AC such that AX = CY and BXDY ls a parallelogram. -Maths 9th

Last Answer : This answer was deleted by our moderators...

Description : In quadrilateral ABCD of the given figure, X and Y are points on diagonal AC such that AX = CY and BXDY ls a parallelogram. -Maths 9th

Last Answer : This answer was deleted by our moderators...

Description : What is the full form of 'LS' ? -How To ?

Last Answer : The full form of 'LS' is Lok Sabha

Description : We bought a used Brother ls 2125 sewing machine and an instruction manual would be important to me. Can it be downloaded from somewhere? [img alt_text = 'Brother ls 2125 guide' description = ''] https:///wp-content/uploads/2016/11/33748971.brother-ls-2125.jpg [/ img] 

Last Answer : Very good little machine, we have one too. Singer we wanted to buy because I knew it was the benchmark, but they discouraged it because supposedly, price was nowhere near that level it used to be. However, the operating instructions for this machine are HERE. 

Description : Why do my dash lights go out when I press the gas pedal on 2001 Lincoln LS V8?

Last Answer : Need answer

Description : How do you find Ls magazine?

Last Answer : Need answer

Description : Why did the rmdir command fail's that a directory bar exists. The command rmdir bar fails with the message that the directory is not empty. On running ls bar no files are displayed?

Last Answer : This could mean that the directory named bar has hidden contents. Use ls -a bar to show all contents of bar.

Description : Why ls President Trump is referred to as Trump. How often was president Obama referred to as Obama?

Last Answer : Feel Free to Answer

Description : What is causing My 2000 Lincoln LS V6 to run lean on right bank an rich on left bank?

Last Answer : Could be more than one issue such as,vacuum leak on right bank,tired O2 sensors,dirty/leaky injectors,dirty fuel filter,

Description : What ls the pattern for numbers 0-9?

Last Answer : 9

Description : Does the Kettler Coach LS Magnetic Rower Machine have adjustable settings?

Last Answer : This Rower has adjustable settings with a maximum weight setting of 130 kg.

Description : Infant i le convu ls ions due to lesser formation of gamma amino butyric acid from glutamic acid is seen in the deficiency of (A) Glutamate-dehydrogenase (B) Pyridoxine (C) Folic acid (D) Thiamin

Last Answer : Answer : B

Description : As per Taggart's formula, the capacity (kg/hr) of Jaw & Gyratory crushers (for gapes of 10 to 60 cms) is equal to (where, L = Length of feed opening, cms S = Maximum width of discharge opening, cms). (A) LS (B) 93 LS (C) 250 LS (D) √(LS)

Last Answer : (B) 93 LS

Description : If D is the duration, ES and EF are the earliest start and finish, LS and LF are latest start and latest finish time, then the following relation holds good (A) EF = ES + D (B) LS = LF - D (C) LF = LS + D (D) All the above

Last Answer : (D) All the above

Description : The ALU of a computer responds to the commands coming from A) Primary memory B) Control section C) External memory D) Cache memory

Last Answer : Answer : B

Description : Which is an escape code language used to send commands to the printer for printing documents? A. Postscript B. PCL C. Both (A) and (B) D. None of the Above

Last Answer : B. PCL

Description : _________ is a group of commands for a CPU in machine language. A. Information Set B. Instruction Set C. Buffer D. None of the Above

Last Answer : B. Instruction Set

Description : The toolbar which contains short cuts to some of the most frequently used commands found under the FORMAT menu item is: a) Standard Toolbar b) Status Bar c) Formatting Toolbar d) None of These

Last Answer : c) Formatting Toolbar

Description : ________toolbar contains short cuts to some of the most frequently used commands from the menu bar: a) Formatting Toolbar b) Standard Toolbar c) Both of Above d) None of These

Last Answer : b) Standard Toolbar

Description : ______bar displays the heading for each drop down menu. Commands are grouped under each of these menu headings according to function: a) Title Bar b) Formatting Toolbar c) Menu bar d) None of These

Last Answer : c) Menu bar

Description : Which among the following is correct about WRAM: a) Makes it easier to allow blocks of memory to be addressed with just a few commands b) Makes it easier to allow windows of memory to be addressed with just a few commands. c) Both of Above d) None of These

Last Answer : c) Both of Above

Description : _______is the process of carrying commands: a) Storing b) Executing c) Fetching d) None of These

Last Answer : b) Executing

Description : ______toolbar contains short cuts to some of the most frequently used commands from the menu bar: a) Standard b) Title c) Status Bar d) None of These

Last Answer : a) Standard

Description : Which among the following print commands should be selected to print first 5 pages of document: a) Page Setup b) Print All c) From ___to ____ d) None of The Above

Last Answer : c) From ___to ____

Description : ________ is the process of carrying commands. a) Fetching b) Storing c) Executing d) Decoding e) None of these

Last Answer : c) Executing

Description : Which of the following commands is given to reboot the computer? 1) Ctrl + Alt + Del 2) Ctrl + Alt + Tab 3) Ctrl + Shift + Del 4) Ctrl + Alt + shift

Last Answer : 1) Ctrl + Alt + Del

Description : A ..... contains buttons and menus that provide quick access to commonly used commands. 1) Menu Bar 2) Toolbar 3) Window 4) Action Bar

Last Answer : 2) Toolbar

Description : The.... of software contains list lists of commands and options. 1) Menu bar 2) Title bar 3) Formula bar 4) Tool bar

Last Answer : 1) Menu bar

Description : Which file in MS-DOS contains internal commands that are loaded during Booting process? 1) IO.SYS 2) MSDOS.SYS 3) COMMAND.COM 4) CONFIG.SYS

Last Answer : 4) CONFIG.SYS

Description : Which type of commands in DOS needs additional files for their execution? 1) Internal Commands 2) External Commands 3) Batch Commands 4) Redirector

Last Answer : 2) External Commands

Description : Which of the following commands displays names of files in sorted order? 1) DIR/N 2) DIR/SO 3) DIR/AN 4) DIR/AH

Last Answer : 3) DIR/AN

Description : Which file in MS-DOS contains internal commands that are loaded during Booting process? 1 IO.SYS 2 MSDOS.SYS 3 COMMAND.COM 4 CONFIG.SYS

Last Answer : 4 CONFIG.SYS

Description : Which type of commands in DOS needs additional files for their execution? 1 Internal Commands 2 External Commands 3 Batch Commands 4 Redirectors

Last Answer : 2 External Commands

Description : Which of the following commands displays names of files in sorted order? 1 DIR/N 2 DIR/SO 3 DIR/AN 4 DIR/AH

Last Answer : 3 DIR/AN

Description : . Which attack is an HTTP attack which allows attackers to access restricted directories and execute commands outside the web servers root directory? a. XSS attack b. Path Traversal attack c. MITM attack d. SQL Injection attack

Last Answer : d. SQL Injection attack

Description : Describe working of diff and cmp file handling commands with example.

Last Answer : Diff command: diff stands for difference. This command is used to display the differences in the files by comparing the files line by line. it tells us which lines in one file have is to be changed to make the two files ... $ cat file1 abcd xyz $ cat file2 Abed wxy $_