Linux problems: urgent

sarveshgupta

sarveshgupta

@sarveshgupta-txtmu5 Oct 25, 2024
Q} If the size of the file is 2050 bytes then what disk space will it occupy?

Q} what is a system process?

Q} How can we control the execution of a process?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Aashish Joshi

    Aashish Joshi

    @aashish-VrevFC Sep 17, 2009

    A1) This will depend on the file system. Taking ext2/ext3 as an example, the default cluster size is 4096 bytes. So a file of 2050 bytes should take up 4kb of space. the default cluster size can be changed at the time of creation (of the file system).
  • Prasad Ajinkya

    Prasad Ajinkya

    @prasad-aSUfhP Sep 17, 2009

    Try using a "ps -ax" command at your prompt and check the list of processes.

    To kill a process try "kill -9 <process_id>"
  • pushpen mahawar

    pushpen mahawar

    @pushpen-mahawar-zxWxBz Sep 20, 2009

    A2) every process has a unique process id which is known as PID.
    two types of process -
    1. foreground process
    2. background process

    to see the the currently running process use folowing command- and than press enter ..type
    ''top'' than enter.

    if u want remove any process type folowing command in the prompt -
    kill <process id>

    and to remove all processes
    ''kill all'' than enter
  • sarveshgupta

    sarveshgupta

    @sarveshgupta-txtmu5 Sep 21, 2009

    Thank you all
  • komputergeek

    komputergeek

    @komputergeek-Yf5hJ4 Sep 29, 2009

    you can use top command to view processes.It will show u all details and you can easily control processes using top.htop is even better than top.But you will have to install it separately.