1/27
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
ls
List directories and files
cd
Change between directories
pwd
Current path
mv
Moves files and directories from one directory to another or renames a file or directory
cut -d” “ -f1
Cut a field
cut -c1
Cut a character
rm file.txt
Delete file
chmod ugo
Change mod = changing permission
su admin
Allows users to switch to the root account and perform administrative tasks
sudo admin
Allows users to execute specific commands with elevated privileges
|
Pipe; allow you to connect the output of one command as the input to another
&&
ensure that the command on the right of it will be run if the command on the left of it succeeds and ensures that the second command isn't run if the first command fails
||
executes the second command only if the first command fails
date
used to display and set the system date and time
Format:
dayname month daynum hh:mm:as timezone year
head file.txt
used to display the first 10 part of files
tail file.txt
prints the last few number of lines (10 lines by default) of a certain file
cat file.txt
reads files
cat > file.txt
Entering input into the file
cat » file.txt
Adding text to the current file (the previous text stays)
ls -l
detailed directory listing, showing file permissions, number of links, owner, group, size, and time of last modification
ls -s
List files and sort by file size
ls -lh
Show the file sizes in human readable format
ls -d */
Show only directories
wc -l
Count the number of rows in a file
wc -w
Count the number of lines in a file
wc -m
Count the number of characters in a file
grep
Show lines that contain…
echo $()
Prints
Calculates
Finds
Executes