Linux commands: Difference between revisions

Jump to navigation Jump to search
638 bytes added ,  27 November 2017
Line 321: Line 321:
* GUI: [http://support.microsoft.com/kb/156571/en-us How to Perform Scandisk in Windows] {{Win}}
* GUI: [http://support.microsoft.com/kb/156571/en-us How to Perform Scandisk in Windows] {{Win}}
* Command: {{kbd | key=shutdown -rF now}} Force fsck when rebooting a Linux server ({{Linux}})<ref>[http://www.limestonenetworks.com/support/kc/7/67/how_do_i_schedule_fsck_to_run_automatically.html Cloud Provider and Dedicated Server Hosting in Dallas, TX]</ref>
* Command: {{kbd | key=shutdown -rF now}} Force fsck when rebooting a Linux server ({{Linux}})<ref>[http://www.limestonenetworks.com/support/kc/7/67/how_do_i_schedule_fsck_to_run_automatically.html Cloud Provider and Dedicated Server Hosting in Dallas, TX]</ref>
=== Switch the user account ===
switch the current user
* {{kbd | key=<nowiki>su</nowiki>}} on {{Linux}} switch the current user to super user <ref>[https://www.computerhope.com/unix/usu.htm Linux su command help and examples]</ref>
* {{kbd | key=<nowiki>su - <user name></nowiki>}} on {{Linux}} switch the current user to another user
prints the current user
* {{kbd | key=<nowiki>whoami</nowiki>}} on {{Linux}} & {{Win}} "prints the effective user ID"<ref>[https://www.computerhope.com/unix/whoami.htm Linux whoami command help and examples]</ref><ref>[https://technet.microsoft.com/zh-tw/library/cc771299(v=ws.11).aspx Whoami]</ref>


=== Clean the screen/console ===
=== Clean the screen/console ===

Navigation menu