[Solved]Question about a command

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
willie42
Level 7
Level 7
Posts: 1970
Joined: Tue Jun 22, 2010 7:52 pm
Location: Oak Ridge, TN USA

[Solved]Question about a command

Post by willie42 »

I was wondering about a command that helped someone and I was asked a question that I dont know the answer to.

Code: Select all

sudo shutdown -r -F now
what is the -F switch do.

I hope I posted this in the right area.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Comptia A+ Certified Technician
Comptia Network + Certified Technician
You can not have Success without Failures.
wayne128

Re: Question about a command

Post by wayne128 »

what is the -F switch do.
see red below

-a Use /etc/shutdown.allow.

-k Don't really shutdown; only send the warning messages to every‐
body.

-r Reboot after shutdown.

-h Halt or power off after shutdown.

-P Halt action is to turn off the power.

-H Modifier to the -h flag. Halt action is to halt or drop into
boot monitor on systems that support it. Must be used with the
-h flag.

-f Skip fsck on reboot.

-F Force fsck on reboot.

-n [DEPRECATED] Don't call init(8) to do the shutdown but do it
ourself. The use of this option is discouraged, and its results
are not always what you'd expect.

-c Cancel a waiting shutdown. ("shutdown now" is no longer wait‐
ing.) With this option it is of course not possible to give the
time argument, but you can enter explanatory message arguments
on the command line that will be sent to all users.

-t sec Tell init(8) to wait sec seconds between sending processes the
warning and the kill signal, before changing to another run‐
level.

time When to shutdown.
willie42
Level 7
Level 7
Posts: 1970
Joined: Tue Jun 22, 2010 7:52 pm
Location: Oak Ridge, TN USA

Re: Question about a command

Post by willie42 »

Thanks...will mark this one solved.
Comptia A+ Certified Technician
Comptia Network + Certified Technician
You can not have Success without Failures.
Locked

Return to “Beginner Questions”