Linux commands (1002)

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

rm

rm stands for 'remove' as the name suggests rm command is used to delete or remove files and directory in UNIX like operating system.

cat

short for "concatenate" Used for: Display text file on screen Create a new text file Read text file Modifying file File concatenation https://www.interserver.net/tips/kb/linux-cat-command-usage-examples/

shutdown

used to schedule shutdown.

traceroute (tracert)

Linux equivalent of tracert Syntax: traceroute --resolve-hostnames (address)

rm -r

Removes a directory and its contents/sub-directories recursively

rmdir

Removes an empty directory

kill

Used to kill process using PID.

ps (process status)

Used to list currently running processes and their PIDs along with some other information depends on different options.

vi

basic text editor included in most linux distros.

cd

change directory

chmod

chmod is the command and system call which is used to change the access permissions of file system objects (files and directories). It is also used to change special mode flags. The request is filtered by the umask. The name is an abbreviation of change mode. Syntax: sudo chmod (permissions numbers [777/644/etc]) (File/Folder name).

ifconfig

A TCP/IP configuration and management utility used with UNIX and Linux systems.

iwconfig

A command-line utility for viewing and setting wireless interface parameters on Linux and UNIX workstations.

CP

Copy The general form of the command is cp source destination, for example: cp myfile.txt myfilecopy.txt

chown

The command chown, an abbreviation of change owner, is used on Unix and Unix-like operating systems to change the owner of file system files, directories. Syntax: sudo chown (user to gain ownership) (File/Folder name).

grep

The grep filter searches a file for a particular pattern of characters, and displays all lines that contain that pattern. The pattern that is searched in the file is referred to as the regular expression (grep stands for globally search for regular expression and print out). Syntax: grep [options] pattern [files]

mv

The mv command is a command line utility that moves files or directories from one place to another . It supports moving single files, multiple files and directories. It can prompt before overwriting and has an option to only move files that are new than the destination.

passwd

The passwd command changes passwords for user accounts. A normal user can only change the password for their own account, but the superuser can change the password for any account. passwd can also change or reset the account's validity period — how much time can pass before the password expires and must be changed.

pwd

The pwd command is a command line utility for printing the current working directory. It will print the full system path of the current working directory to standard output. By default the pwd command ignores symlinks, although the full physical path of a current directory can be shown with an option.

su/sudo

The su command switches to the super user - or root user - when you execute it with no additional options. You'll have to enter the root account's password. This isn't all the su command does, though - you can use it to switch to any user account. If you execute the su bob command, you'll be prompted to enter Bob's password and the shell will switch to Bob's user account. Sudo runs a single command with root privileges. When you execute sudo command, the system prompts you for your current user account's password before running command as the root user. By default, Ubuntu remembers the password for fifteen minutes and won't ask for a password again until the fifteen minutes are up.

Touch

The touch command is a standard command used in UNIX/Linux operating system which is used to create, change and modify timestamps of a file. Basically, there are two different commands to create a file in the Linux system which is as follows: https://www.geeksforgeeks.org/touch-command-in-linux-with-examples/

dd

dd is a command-line utility for Unix and Unix-like operating systems whose primary purpose is to convert and copy files. dd can also read and/or write from/to these files, provided that function is implemented in their respective drivers.

LS

list directory


Kaugnay na mga set ng pag-aaral

Chapter 7-12 Questions. MKT 3350

View Set

GCSE French 9-1 CGP Vocab Part 1

View Set

DECA Hospitality + Tourism Cluster Exam review

View Set