answersLogoWhite

0

📱

Linux

A free and open-source family of operating systems first started in 1991 and named after its creator, Linus Torvalds.

2,239 Questions

What is man fdisk in Linux?

In Linux the man command displays the help(man page) for a command.

man fdisk is "display the man page for command fdisk"

What Refers to directing the output of one command to the input of a second command?

The 'pipe' symbol connects the output of one command to the input of another (|)

What is a LiveCD?

A LiveCD is a bootable CD that provides a fully functional operating system with no need for installation.

What is the Linux command for displaying a working directory?

The command pwd displays your current/present working directory.

What command do you use to create a file system from the shell in Linux?

It depends on what filesystems your distro has available and can support.

The basic mkfs will make you a EXT-based filesystem.

However, mkdosfs (linked to mkfs.vfat) will make FAT filesystems.

For those systems with NTFS support, mkfs.ntfs is also available.

What is a Race Condition in process syncronization?

When two processes sharing a common variable try to update it simultaneously, one cannot predict the output of it, this is the race condition.A thread while updating the variable can be preempted by another thread and update it differently .This is why Synchronization mechanisms are used.


Ex:

X=5



Process 1: X=X+1
Process 2: X=X+2


Machine code is





LOAD EAX,MEMORY_X

ADD EAX , 1
MOV MEMORY_X,EAX


While process1 is executing second line it could be preempted ..And process2 takes turn so , MEMORY_X contains value 7,.Now Process1 comes back and starts the remaining lines of code .The memory then contains value 6.
Which is the final answer. But we should have got a value of 8 instead

How do you create a tar file from the command line?

in a linux machine :

tar -cvf FileOrDirectory.tar FileOrDirectory

# or to gzip it at the same time...

tar -czvf FileOrDirectory.tgz FileOrDirectory

What is meant by AMD64 in Linux distributions?

It's not just in Linux distributions. AMD64 is the "friendlier" term for the 64-bit x86 architecture (x86_64 or "64-bit Intel" as a lot of people like to call it.)

What this means in the context of Linux is that distribution is available for 64-bit PCs. This is akin to Microsoft labeling certain versions of Windows as being "64-bit." It should also be noted Linux came to x86_64 long before Windows did and arguably uses long mode in so many better ways than Windows (Including the fact Linux has far more of a selection of 64-bit software than Windows.).

How can you get a list of users in Linux?

to get all users of the system : cat /ect/passwd (the 1st words, before the semicolon, are the usernames)

You can use the following commands to only display the names of the users (not the rest of the information): cat /etc/passwd | cut -d ":" -f1

== == == == OR you can use the following command to just return users who have a home directory under /home (useful if you are not interested in "special" users):

cat /etc/passwd | grep /home | cut -d: -f1

to get only the usernames of people using the system : ls /home/ Answer To see only who is logged on at any given moment, type...

who

and press the enter key.

What is the command for finding the port number of NFS in Linux?

netstat - input will give a list of all ports in use on a machine with the service running on that port.

Can it is possible the more than one same user in who command in Linux?

If you're asking if it's possible to see more than one user in the who command, the answer is yes. The entire purpose of the command is to track logged in users. Now, the question is whether the permissions allow you to see other users or not.

What command is used to obtain a list of currently running processes in Linux?

PS would be the simplest and fastest way. top will display processes, along with memory and CPU usage, so it is more useful in identifying runaway programs.

How do you install Skype on SUSE Linux?

Download the Linux binary from the skype web site and run it with "sh". It feels like windows all over again.

In which directory is hardware information of Linux machine stored?

Hardware information on a Linux machine is primarily stored in the /proc and /sys directories. The /proc directory contains a virtual filesystem that provides information about system processes and hardware configuration, while /sys offers a view of the kernel's device model, allowing access to hardware details and configurations. Additionally, the /dev directory contains device files that represent hardware components.