- Linux Users
su The su command allows you to run a shell as another user. su {username} su root useradd useradd commands you can add a user. useradd -m -d /home/<userName> -c “<userName>” <userName> useradd -m -d /home/lisa -c “lisa” lisa userdel To delete a user account userdel command is used. By using…
- Linux Man Page
The “man” is a short term for manual page. In unix like operating systems such as linux, man is an interface to view the system’s reference manual. A user can request to display a man page by simply typing man followed by a space and then argument. Here its argument can be a command, utility […]
- Linux File Content
There are many commands which help to look at the contents of a file. Now we’ll look at some of the commands like head, tac, cat, less & more and strings. Head The ‘head’ command displays the starting content of a file. By default, it displays starting 10 lines of any file. head {filename} […]
- Linux File
In Linux system, a file doesn’t include only text files, images and compiled programs, partitions, hardware device drivers and directories. Linux consider everything as as file are also files. Create a text file touch test.txt // using vi vi tes.txt // using vim vim test.txt Update content of an…
- Linux Directory
A directory is a file which job is to store the file names and the related information of its content. All the files, whether ordinary, special, or directory, are contained in directories. Unix uses a hierarchical structure for organizing files and directories. This structure is often referred to…